رفتن به محتوا
WordPress.org

فارسی

  • پوسته‌ها
  • افزونه‌ها
  • اخبار
  • پشتیبانی
  • درباره
  • تیم وردپرس فارسی
  • دریافت وردپرس
دریافت وردپرس
WordPress.org

Plugin Directory

Custom Site Logo

  • ثبت یک افزونه
  • علاقه‌مندی‌های من
  • ورود
  • ثبت یک افزونه
  • علاقه‌مندی‌های من
  • ورود

Custom Site Logo

توسط Awais Altaf
دانلود
  • جزئیات
  • نقد و بررسی‌ها
  • نصب
  • توسعه
پشتیبانی

توضیحات

Custom Site Logo helps you manage your WordPress website’s logo without editing a single line of code. Upload a new logo, or reuse one from your Media Library, then display it anywhere: in your theme, in a post or page, in the block editor, or in a widget area — no template editing required.

Key Features

  • Multiple ways to display your logo — a [csl_display_logo] shortcode, a csl_CustomSiteLogo_show_logo() template tag, a “Custom Site Logo” block for the block editor, and a classic widget.
  • Live preview in the Customizer — configure and preview your logo directly from Appearance » Customize, with instant feedback in the preview pane.
  • Retina/@2x support — upload a high-resolution logo for crisp display on high-DPI screens.
  • Dark mode logo — upload an alternate logo that’s shown automatically based on the visitor’s OS/browser color scheme preference.
  • Mobile logo — upload an alternate logo for small screens, with a configurable breakpoint.
  • SVG logo support — upload SVG logos in addition to raster images, with basic upload sanitization.
  • Per-page/post override — show a different logo on individual pages or posts, great for campaign landing pages.
  • Built-in Logo Maker — no logo yet? Type your site name, pick a font and colors, and generate a simple text logo right on the settings page. It’s uploaded to your Media Library and set as your logo automatically.
  • Export/Import — back up your settings, or move them to another site, as a JSON file.
  • Full styling controls — set a custom width and height, apply a hover effect, make the logo fully responsive, center it, and optionally link it to a custom URL.
  • Organized, tabbed settings page — General, Size & Layout, Hover Effect, Advanced Logos, and Import/Export tabs, with the active tab remembered between visits.

How to Use It

  1. Open the header.php file of your active theme.
  2. Paste <?php echo csl_CustomSiteLogo_show_logo(); ?> where you want the logo to appear.

Prefer not to edit theme files? Use the [csl_display_logo] shortcode in any post or page, add the “Custom Site Logo” block in the block editor, or drag the “Custom Site Logo” widget into a widget area instead.

If you run into any issues setting up the plugin, please reach out via the support forum.

عکس‌های صفحه

The Logo Maker tab — type your site name, pick a font and colors, and generate a text logo without ever leaving the settings page.
The Logo Maker tab — type your site name, pick a font and colors, and generate a text logo without ever leaving the settings page.
The General tab — upload or choose a logo, and optionally link it to a custom URL.
The General tab — upload or choose a logo, and optionally link it to a custom URL.
The Size & Layout tab — set a custom width/height, center the logo, and make it responsive.
The Size & Layout tab — set a custom width/height, center the logo, and make it responsive.
The Hover Effect tab — pick a hover effect and preview it live.
The Hover Effect tab — pick a hover effect and preview it live.
The Advanced Logos tab — configure retina/@2x, dark-mode, and mobile logos.
The Advanced Logos tab — configure retina/@2x, dark-mode, and mobile logos.
The Import/Export tab — back up your settings as a JSON file, or restore them from one.
The Import/Export tab — back up your settings as a JSON file, or restore them from one.

بلوک‌ها

این افزونه 1 بلوک ارائه می‌دهد.

  • Custom Site Logo

نصب

From your WordPress dashboard

  1. Go to Plugins » Add New.
  2. Search for “Custom Site Logo”.
  3. Click Install Now, then Activate.
  4. Go to Appearance » Custom Site Logo to upload your logo and configure it, or Appearance » Customize for a live preview.

Manual installation

  1. Upload the custom-site-logo folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Go to Appearance » Custom Site Logo to upload your logo and configure it.

سوالات متداول

How do I insert the logo?

Open the header.php file of your current theme and paste <?php echo csl_CustomSiteLogo_show_logo(); ?> where you want the logo to appear. Alternatively, use the [csl_display_logo] shortcode, the “Custom Site Logo” block, or the “Custom Site Logo” widget — no template editing required.

Can I insert the logo from the post/page editor?

Yes, just use the [csl_display_logo] shortcode, or the “Custom Site Logo” block, in any post, page, or custom post type editor to display the logo.

Can I use a different logo on a specific page?

Yes. Edit the page or post and use the “Custom Site Logo” meta box in the sidebar to choose an override logo just for that page.

Does it support retina screens and dark mode?

Yes. On the “Advanced Logos” tab of the settings page you can upload a retina/@2x logo, a dark-mode logo, and a mobile logo, each shown automatically under the right conditions.

Why does my logo look too big?

Uncheck “Make Logo Responsive” on the settings page, or set a custom width and/or height for your logo.

Where is the settings page?

Go to Dashboard » Appearance » Custom Site Logo. You can also configure and preview your logo live from Appearance » Customize.

Can I back up or transfer my settings?

Yes. Use the Import/Export tab on the settings page to download your configuration as a JSON file, and import it again on this site or another one.

نقد و بررسی‌ها

Does not have alt text

primorudy10 13 اکتبر 2023
Fine plugin for logo management

Does not display the image ALT text

Mimi 16 ژانویه 2021
This works as described and is very easy, but I was not able to use it because it doesn’t display the image ALT text, either the ALT text as specified in the media library, nor does it allow you to insert other ALT text. Not ADA or WCAG compliant nor compliant with other accessibility guidelines throughout the world. Sorry! I ended up just hand-coding the logo into the header.

Get your logo from a CDN

photoworkout 11 ژانویه 2020
This plugin does work well to server your logo from a CDN (external source). Useful if your theme does not have the option to insert the logo by just pasting the image URL (but requires the WP media uploader, e.g. via the customizer).

And…….a logo!

Curtis 22 دسامبر 2019
It works. Thank you.

GREAT Plugin and AWESOME Support

ewdaadmin 3 آگوست 2018
This is a great plug-in and any questions I had were answered quickly. Awais was a HUGE help.

Simple plugin

galvinxpertex 11 آوریل 2018
Simple plugin to use.
خواندن تمامی 9 نقد و بررسی‌

توسعه دهندگان و همکاران

“Custom Site Logo” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان
  • Awais Altaf

ترجمه “Custom Site Logo” به زبان شما.

علاقه‌ مند به توسعه هستید؟

کد را مرور کنید، مخزن SVN را بررسی کنید، یا از طریق RSS در گزارش توسعه مشترک شوید.

گزارش تغییرات

1.2.0

Release Date: August 15th, 2026

New features:

  • Added a “Custom Site Logo” block for the block editor, with a live preview.
  • Added a “Custom Site Logo” classic widget.
  • Added retina/@2x logo support.
  • Added an alternate dark-mode logo, shown automatically based on the visitor’s OS/browser preference.
  • Added an alternate mobile logo with a configurable breakpoint.
  • Added SVG logo upload support with basic sanitization.
  • Added a per-page/post logo override meta box.
  • Added a live-preview Customizer section (Appearance » Customize).
  • Added settings export/import (as a JSON file).
  • Added a “Logo Maker” tab: no logo yet? Type your site name, pick a font and colors, and generate a text logo right on the settings page. It’s uploaded to your Media Library and set as your logo automatically.

Updates:

  • Reorganized the settings page into tabs (General, Size & Layout, Hover Effect, Advanced Logos, Import/Export) for easier navigation. The active tab is remembered between visits.
  • Redesigned the settings page with a proper page header, thumbnail previews next to every logo field (with a one-click “Remove”), modern on/off toggle switches for checkbox options, and a two-card layout for Import/Export.
  • Shrunk the oversized hover-effect preview image on the settings page.

Bugfixes:

  • Fixed the “no logo uploaded” notice incorrectly appearing on every page/request; it is now only shown where the logo is actually rendered.
  • Fixed a fatal error (TypeError in WP_List_Table::row_actions()) on the Plugins page caused by the “Settings” action link filter.
  • Fixed the Media Library upload button being broken on other admin screens due to an unnecessary, globally-loaded Thickbox stylesheet.
  • Fixed the logo image field silently storing the literal placeholder text “Select Logo” as its value when no logo was chosen.
  • Fixed the “Save Settings” button showing on the Import/Export tab, where it didn’t apply.

1.0.3

Release Date: August 14th, 2026

Updates:

  • Resolved all PHPCS (WordPress Coding Standards) reported issues across the codebase.
  • Escaped all admin and front-end output, and added a nonce-safe check around the settings-saved notice.
  • Fixed the [csl_display_logo] shortcode to correctly return its markup instead of echoing it directly.
  • Added an alt attribute to the rendered logo image for better accessibility.
  • Clarified and improved the wording of settings page labels, descriptions, and messages.
  • Corrected a translation domain mismatch on the plugin’s “Settings” action link.
  • Updated “Tested up to” to the latest WordPress version.

1.0.2

Release Date: May 09th, 2023

Bugfixes:

  • Fixes PHP Function.

1.0.1

Release Date: May 25th, 2023

Bugfixes:

  • Fixes PHP warnings.

Updates:

Update the code standards.

اطلاعات

  • نگارش 1.2.0
  • آخرین به‌روزرسانی 4 روز پیش
  • نصب‌های فعال 1,000+
  • نگارش وردپرس 3.0 یا بالاتر
  • آزمایش‌شده تا 7.0.4
  • نگارش PHP 5.6 یا بالاتر
  • زبان
    English (US)
  • برچسب
    center logocustom logologologo managementwidget
  • نمایش پیشرفته

امتیازها

4.7 از 5 ستاره.
  • امتیاز 8 5-ستاره 5 ستاره 8
  • امتیاز 0 4-ستاره 4 ستاره 0
  • امتیاز 0 3-ستاره 3 ستاره 0
  • امتیاز 1 2-ستاره 2 ستاره 1
  • امتیاز 0 1-ستاره 1 ستاره 0

بررسی شما

مشاهدهٔ همهٔ بررسی‌ها

مشارکت کنندگان

  • Awais Altaf

پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

مشاهده انجمن پشتیبانی

  • درباره ما
  • اخبار
  • میزبانی
  • حریم خصوصی
  • ویترین
  • پوسته‌ها
  • افزونه‌ها
  • الگوها
  • یادگیری
  • پشتیبانی
  • توسعه‌دهندگان
  • WordPress.tv ↖
  • مشارکت کنید
  • رویدادها
  • حمایت ↖
  • Swag ↗
  • WordPress.com ↖
  • مت ↖
  • بی‌بی‌پرس ↖
  • بادی‌پرس ↖
WordPress.org
WordPress.org

فارسی

  • از حساب کاربری X (تویتر سابق) ما بازدید کنید
  • بازدید از حساب کاربری ما در بلواسکای
  • بازدید از حساب کاربری ما در ماستودون
  • بازدید از حساب کاربری ما در تردز
  • صفحه ی فیسبوک ما را ببینید
  • بازدید از حساب کاربری ما در اینستاگرام
  • بازدید از حساب کاربری ما در LinkedIn
  • بازدید از حساب کاربری ما در تیک‌تاک
  • کانال یوتیوب ما را ببینید
  • بازدید از حساب کاربری ما در تامبلر
کد شعر است.
The WordPress® trademark is the intellectual property of the WordPress Foundation.