Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Puchar WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Jak wyświetlić inny panel boczny dla każdego wpisu i strony w WordPress?

Uwaga redakcyjna: Otrzymujemy prowizję z linków partnerskich na WPBeginner. Prowizje nie mają wpływu na opinie i oceny naszych redaktorów. Dowiedz się więcej o Proces redakcyjny.

Czy chcesz wyświetlać różne panele boczne dla określonych wpisów i stron w twojej witrynie WordPress?

W większości przypadków będziesz chciał wyświetlać ten sam panel boczny na całej twojej witrynie internetowej lub blogu. Czasami jednak może być konieczne wyświetlenie różnych treści na panelu bocznym w niektórych twoich wpisach i stronach.

W tym artykule pokażemy, jak tworzyć i wyświetlać różne panele boczne dla każdego wpisu i strony w WordPress.

How to Display Different Sidebar for Each Post and Page in WordPress

Kiedy potrzebne są różne panele boczne w WordPress?

Wiele motywów WordPress ma domyślną lokalizację na panelu bocznym, gdzie można dodać przydatne widżety i treści. Na przykład, wiele witryn dodaje pasek wyszukiwania do panelu bocznego lub wyświetla listę ostatnich wpisów.

Jeśli twój motyw WordPress ma panel boczny, to domyślnie będzie on wyglądał tak samo na wszystkich wpisach, stronach, kategoriach i stronach archiwum.

Możesz jednak chcieć wyświetlać różne widżety panelu bocznego na niektórych wpisach i stronach WordPress.

Na przykład, możesz wyświetlać różne treści w panelu bocznym twoich najpopularniejszych wpisów lub wyświetlać reklamy, które są bardziej odpowiednie dla danej strony.

Można nawet użyć różnych formularzy kontaktowych w zależności od treści strony.

Powiedziawszy to, zobaczmy, jak utworzyć i wyświetlić inny panel boczny dla każdego wpisu i strony w WordPress. Po prostu użyj poniższych szybkich odnośników, aby przejść bezpośrednio do metody, której chcesz użyć:

Metoda 1: Wyświetlanie różnych paneli bocznych dla każdego wpisu i strony w WordPress (Łatwe)

Jeśli twój motyw obsługuje widżety paska bocznego, możesz łatwo utworzyć wiele pasków bocznych za pomocą Lightweight Sidebar Manager. Ta własna wtyczka umożliwia tworzenie dowolnej liczby paneli bocznych, a następnie przypisywanie ich do różnych wpisów i stron.

Możesz także dodać je do niestandardowych typów treści lub przypisać panel boczny do wszystkich różnych stron lub wpisów, które mają określoną kategorię.

Pierwszą rzeczą, którą musisz zrobić, jest zainstalowanie i włączanie wtyczki Lightweight Sidebar Manager. Aby uzyskać więcej informacji, zobacz nasz przewodnik krok po kroku, jak zainstalować wtyczkę WordPress.

Po włączaniu należy przejść do Wygląd ” Panele boczne. Aby utworzyć pierwszy panel boczny, należy kliknąć przycisk „Dodaj nowy”.

Adding custom sidebars to your WordPress website

Możesz teraz wpisać tytuł nowego panelu bocznego WordPress. To jest tylko dla twojego odniesienia, więc możesz użyć czegokolwiek chcesz.

Po wykonaniu tej czynności otwórz menu rozwijane „Sidebar To Replace” i wybierz położenie, w którym chcesz wyświetlić panel boczny. Opcje, które zobaczysz, mogą się różnić w zależności od twojego motywu WordPress.

Replacing the built-in sidebar provided by your WordPress theme

Teraz możesz kontrolować, gdzie pojawia się panel boczny, tworząc reguły włączenia lub wykluczenia.

Aby utworzyć regułę włączania, wystarczy otworzyć menu rozwijane „Wyświetl na” i wybrać strony, wpisy, własne typy treści lub kategorie, w których chcesz używać panelu bocznego.

Na przykład, możesz dodać panel boczny do konkretnej strony, takiej jak twoja strona błędu 404, archiwum autora lub strona bloga.

Adding a custom sidebar to the WordPress 404 page

Inną opcją jest użycie panelu bocznego dla konkretnej strony, wpisu lub kategorii poprzez wybranie opcji „Konkretne strony/posty/taksonomie”.

Spowoduje to dodanie pola, w którym można wpisać stronę, wpis lub kategorię.

Creating a custom sidebar for WordPress categories

Aby utworzyć więcej reguł włączania, wystarczy kliknąć przycisk „Dodaj regułę wyświetlania”.

Spowoduje to utworzenie sekcji, w której można utworzyć nową regułę włączania.

Adding display rules for custom sidebars in WordPress

Jeśli wolisz, możesz zamiast tego utworzyć reguły wykluczeń. Na przykład, możesz chcieć wyświetlać panel boczny na każdej stronie z wyjątkiem strony głównej.

Możesz także łączyć reguły włączania i wykluczania, aby kontrolować dokładnie, gdzie panel boczny pojawia się na twojej witrynie internetowej WordPress.

Aby utworzyć regułę wykluczenia dla lokalizacji panelu bocznego, wystarczy kliknąć przycisk „Dodaj regułę wykluczenia”.

Displaying different sidebars for pages and posts in WordPress

W nowej sekcji „Nie wyświetlaj na” otwórz menu rozwijane i wybierz stronę lub wpis, który nie powinien używać tego panelu bocznego.

Możesz również wykluczyć panel boczny ze stron WordPress, które mają określoną kategorię, wykonując ten sam proces opisany powyżej.

Displaying different sidebar for each page and post in WordPress

Po podjęciu decyzji o tym, gdzie panel boczny pojawi się na twoim blogu WordPress, możesz chcieć wyświetlać różne treści różnym użytkownikom.

Na przykład, jeśli masz witrynę członkowską, możesz użyć innego panelu bocznego dla odwiedzających niż dla zalogowanych członków.

Aby to zrobić, otwórz menu rozwijane „Użytkownik” i wybierz rolę z menu rozwijanego. Teraz tylko osoby z tą konkretną rolą użytkownika będą widzieć panel boczny.

Displaying different sidebar widgets on each WordPress page or post

Na koniec możesz wpisać opcjonalny opis. Pojawi się on tylko w kokpicie WordPress, więc jest to dobry sposób na udostępnianie informacji innym administratorom lub użytkownikom na blogu WordPress z wieloma autorami.

Jeśli zamierzasz utworzyć wiele paneli bocznych, możesz również użyć tego pola, aby zostawić sobie notatki i pomocne przypomnienia.

Adding a helpful description to a custom sidebar in WordPress

Gdy jesteś zadowolony z informacji, które wpiszesz, po prostu kliknij „Opublikuj”.

Po wykonaniu tej czynności przejdź do Wygląd ” Widżety. Zobaczysz teraz wszystkie obszary widżetów, które twój motyw obsługuje domyślnie, a także nowy panel boczny utworzony w poprzednim kroku.

Adding content to a sidebar or similar widget-ready area

Możesz teraz przejść dalej i dodać widżety do panelu bocznego, tak jak do każdej innej sekcji widżetów.

Aby uzyskać instrukcje krok po kroku, zapoznaj się z naszym przewodnikiem na temat dodawania i korzystania z widżetów WordPress.

Adding content to a custom WordPress sidebar

Gdy będziesz zadowolony z konfiguracji panelu bocznego, kliknij „Aktualizuj”.

Teraz, jeśli przejdziesz na twój blog WordPress, zobaczysz nowy panel boczny na żywo.

An example of a custom WordPress sidebar, created using a plugin

Aby utworzyć więcej paneli bocznych motywu, wystarczy powtórzyć te kroki.

Metoda 2: Tworzenie innego panelu bocznego za pomocą wtyczki Page Builder (działa z każdym motywem WordPress)

Jeśli twój motyw nie ma funkcji paska bocznego, nadal możesz tworzyć różne panele boczne za pomocą wtyczki do tworzenia stron typu „przeciągnij i upuść„.

SeedProd to najlepsza i najbardziej przyjazna dla początkujących wtyczka do tworzenia stron docelowych dla WordPress. Dzięki tej wtyczce możesz stworzyć dowolny rodzaj własnej strony bez pisania jakiegokolwiek kodu.

Posiada również dziesiątki profesjonalnych zestawów witryn i szablonów, które można łatwo edytować i dostosowywać za pomocą kreatora przeciągnij i upuść.

Podczas projektowania własnej strony można wybrać układ z panelem bocznym.

Choose a Layout with a Sidebar

Następnie wystarczy znaleźć bloki, które mają być wyświetlane na tym panelu bocznym i dodać je metodą „przeciągnij i upuść”.

SeedProd ma wszystkie bloki i funkcje, których można oczekiwać od potężnego kreatora stron, takie jak formularze opt-in, profile społecznościowe, liczniki czasu, formularze kontaktowe, przyciski, różne bloki treści i wiele innych. Ułatwia to tworzenie potężnych i unikatowych paneli bocznych dla twojego bloga WordPress.

Drag the Blocks You Wish to Use Right onto the Sidebar

Aby dowiedzieć się, jak korzystać z wtyczki SeedProd page builder na twojej witrynie internetowej, możesz zapoznać się z naszym przewodnikiem na temat tworzenia własnych paneli bocznych, nagłówków lub stopek dla każdej kategorii WordPress oraz jak utworzyć własną stronę w WordPress.

Dowiedz się więcej o sposobach dostosowania panelu bocznego WordPressa do własnych potrzeb

Chcesz jeszcze bardziej ulepszyć twój panel boczny WordPress i uczynić go bardziej użytecznym dla użytkowników? Sprawdź te poradniki WordPress:

Mamy nadzieję, że ten artykuł pomógł ci nauczyć się dodawać różne panele boczne do każdego wpisu lub strony w WordPress. Możesz również dowiedzieć się, jak utworzyć własny kanał Instagramu w WordPressie lub zapoznać się z naszymi typami ekspertów dla najlepszych motywów blokowych do pełnej edycji witryny.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Ujawnienie: Nasze treści są wspierane przez czytelników. Oznacza to, że jeśli klikniesz na niektóre z naszych linków, możemy otrzymać prowizję. Zobacz jak WPBeginner jest finansowany, dlaczego to ma znaczenie i jak możesz nas wspierać. Oto nasz proces redakcyjny.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Najlepszy zestaw narzędzi WordPress

Uzyskaj BEZPŁATNY dostęp do naszego zestawu narzędzi - zbiór produktów i zasobów związanych z WordPressem, które każdy profesjonalista powinien mieć!

Reader Interactions

56 komentarzyZostaw odpowiedź

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Jiří Vaněk says

    I have a technical section on my blog, which is the majority, and I write technical articles on various topics. The minority part is private, where I write my own opinions on anything (politics, personal life, sports). In elementor, I created a different header and a different footer for both sections so that it was graphically separated. I just needed to finish another menu. I will try your instructions so that both the technical and personal sections have a completely different structure. Thank you very much for the instructions.

  3. Ralph says

    Wow! I never knew i could have different sidebars!
    This is great feature for different categories for my use. Thank you for this guide i will definitely put it to good use!

  4. Finn G says

    can you use this to add sidebar images to both sides of the page and have different images on different pages?

    thanks

    • WPBeginner Support says

      You can use this to have a different image on different pages but for the sidebars of your site normally, it would depend on the specific theme you are using for if they have a second sidebar for the other site or if one would need to be added with a page builder or custom code.

      Administrator

  5. Muhammadd Farhan says

    Wow, you just saved my day! looking for this solution and I got exactly what I need. Thank you for the post.

  6. Jim Joshua Oba says

    Hello! My Sidebar has disappeared. It was displaying before it got missing. However, i din’t change the theme.

    The message reads „Your theme has 1 widgets area but this particular page doesn’t display it”.

    • WPBeginner Support says

      You would need to reach out to your theme’s support for displaying the widgets properly on that page.

      Administrator

  7. Ken Mbesa says

    This is exaaaaactly what I needed for my portfolio website.

    Thanks WP Beginner. You guys are the best, always!

    I have been a huge user of your resources for over three years now, and your website is one of my most opened bookmarks in all my browsers (in fact, it’s usually just open even when am not using it looking for WP info ;-)).

  8. M.IFTIKHAR says

    Hi ! I have a problem in my wordpress website that the sidebar on shop page is not showing up but when i custimize the shop page it still show but not showing on default shop page .Please tell me why this is happening ?

    • WPBeginner Support says

      You would want to start by reaching out to your theme’s support to see if this is a known issue with your theme and they should be able to assist.

      Administrator

  9. Peter P. says

    We tried this plugin but it wasn’t really usable for many sidebars. We had a hundred posts where the sidebar should contain more information about each product. Already after 10 sidebars the system became slower and slower, until it finally became unbearable with 20 or 30 sidebars.
    We then used a different, differently designed solution that didn’t require a sidebar.

  10. Poorya says

    What happens to the posts/pages which have multiple categories selected?! or with several tags?
    For example, I want a custom category for the news section and another for tourism, but what happens when a post appears on both of these categories?

    • WPBeginner Support says

      You would need to check with the plugin for what would happen when a conflict like that happens. If you have multiple posts in different categories then you may want to take a look at how you have your categories themselves set up

      Administrator

  11. Marco Diversi says

    hello, I am trying to find a solution to add embed code to the sidebar of a post.

    what i would like to have is a plugin that allow you to add a html or txt widget to the side of one single post, I have spent some time trying to find this but can not find! I have a website where every post is a different location and it needs a different map each post.

  12. BRENDAN says

    This one seems dead Syed, plugin not updated in 2 years so likely missing a lot of integration since WordPress has undergone some major core upgrades over the last 12 months. Is there a more recent solution for sidebars?

    • WPBeginner Support says

      Thank you for letting us know, we’ll certainly take a look at this article and possible alternatives

      Administrator

  13. Katy says

    Thank you so much! I have been driving myself mad trying to fix the sidebar then I found your video! Thankyoooou!!

  14. aba charles says

    Really nice and detailed tutorial you have here. But i don’t know why after following it my sidebars are still not appearing

  15. Soumik Sadman Anwar says

    Is there any way to show no sidebar on a certain page at all?

    Remember, the other pages will have to show the sidebar.

  16. becka says

    Is there a way to change the sidebar on certain pages and have it removed entirely on others? Before I download and activate I would like to know if removing the sidebar completely and making the page width 100% as easy as making different sidebars for different pages

  17. Linda says

    Hello – I have a sidebar on my weekly blog page but when I click on read more, it takes me to the full page width and doesn’t show the sidebar. I have looked everywhere to try and do this. Can anyone help please?

  18. Dr Jill SM says

    I tried to use the easy side bar and it does not work! I want to put a side bar only on specific pages and this put it on ALL of them.

    I had learned how to use the original appearance > widgets and had right side bar on certain pages. I just added a new page to my web site and got the side bar that I did NOT want. I tried to add a left side bar to ONLY my new page and could not do it. So I looked at this video and got the plug-in easy side bars and it does not add a left side bar to ONLY the new page nor does it help me remove the right side bar [done through appearance > widgets] from the new page. Not real helpful.

  19. K.Mr says

    Hi, I need small help that you could do. I’m planning to buy managed wordpress on godaddy. I write posts in two languages. 1 is supported by adsense and one is not. I would like to place ads on posts using this on supported only language posts. Can I do this ? Can i use this to place ads? Please could you tell me?

  20. Kati K. says

    Hi! Can I add more sidebars with this plugin? Do I have to replace my existing sidebars with these new sidebars? For example, I have now 3 optional sidebars and I would like to have more than that. Is that possible somehow? Thanks!

  21. Jennifer L says

    I installed this plugin and now my site doesn’t work at all!! How do I fix this, it is really important! Please advise.

    Jennifer

    • WPBeginner Support says

      Hi Jennifer,

      You can manually delete the plugin using FTP. Connect to your website using FTP client and go to /wp-content/plugins/ folder inside it you will find easy-custom-sidebars folder. Delete it and then login to your WordPress site. You can reinstall the plugin again if you want to give it another try.

      Administrator

      • Ale Goedrich says

        Hello – I have the same problem. The only choices I get is to replace the Footer Widgets 1 – 4. There are no other choices. Any ideas? I’d like to add a sidebar to my products thats different from my blog sidebar. I am using Divi.

        Thank you, Alex

  22. Claire C says

    Useful! I definitely want the ability to change my sidebar at times – my theme provides up to 8 choices, including full width (ie. none) for my pages but only 'on’ or 'off’ for all posts. So my question is, specifically for each individual post, could I chose 1. to add a sidebar of my choosing or 2. to have no sidebar at all (ie. full width)? Thanks

  23. Dave DeWitt says

    Wow! This feature is something I’ve been wanting to do for a while. As usual, wpbeginner, makes it easy and fun! Thank you!!

Zostaw odpowiedź

Dziękujemy za pozostawienie komentarza. Pamiętaj, że wszystkie komentarze są moderowane zgodnie z naszymi polityka komentarzy, a Twój adres e-mail NIE zostanie opublikowany. NIE używaj słów kluczowych w polu nazwy. Przeprowadźmy osobistą i konstruktywną rozmowę.