• I thought this was resolved but it wasn’t. Sorry.

    OK this is driving me nuts

    I included this code in the page.php template

    <?php if (is_page('star-contributors')):
          get_sidebar('star'); // get the default sidebar
       else:
          get_sidebar();
       endif;
    ?>

    The page I want to carry the conditionsl sidebar is star-contributors.php
    The files sidebar-star.php exists. It includes contribs-vd.php

    They are there on the directory. But I can’t get it to anything other than tell me they don’t exist.

    I just want certain pages to carry their own sidebar menus.
    Can somebody help me further with this?
    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Lin Robinson

    (@lin-robinson)

    I hate to seem impatient, but I really need this, and fairly soon.

    I’m just trying to get certain pages to show their own right sidebar menu

    Here is the URL https://myfunnybooks.biz

    This brings up something I never thought of before. What happens when you install WordPress hit a problem and can’t get answers on this forum? Is there some other resource?

    Thanks

    I use a totaly different approach to customize the sidebar .
    A plugin (Exe-php) , allows me to execute php code in posts, pages and text widgets .
    I place text widgets into the sidebar and execute php code ( conditional statements ) . It works fine , especially for simple customizations .
    ps I use often WordPress Codex to find solutions . This forum is based on volunteers , I’m sure your knowledge could be very usefull to other WordPress users .Just spend a bit of your time to make the forum even better .

    Thread Starter Lin Robinson

    (@lin-robinson)

    Thanks, Kostas. I doubt my knowledge (or lack thereof) would help many people. I realize this is all volunteer–one reason I was asking if there is some other, higher resource for such things.

    I find the Codex absolutely, totally unreadable. I’m thinking that anybody who can read that and figure out how to do it, probably has enough knowledge and skills not to have to ask questions.

    I’m here because you click “help” in the program and it sends you here.

    I appreciate the time of the person who gave me that code snippet in another thread, but it doesn’t work and I don’t understand why. I posted my URL because it might or might not show something.

    Sorry, but I don’t understand your solution. It sounds interesting, and something powerful, but there isn’t enough there for me to try to put it into place.
    If you don’t mind, how would you use that plugin to produce a separate menu in the sidebar?

    Thanks

    Text widgets , by default , allows you to execute simple html code like : “image-tags” , “ordered-list” , “hyperlinks” …..
    But html has no conditional capabilities ( if this do xyz else do wyz ) . So we have to implement PHP-conditional statements .
    Installing Exe-PHP , allows us to execute PHP scripts into textwidgets . Just embed the html code into PHP conditonal-tags .
    Of course you should have at least basic knowledge of html and PHP .
    An alternative solution is to use a plugin that allows you to customize the sidebar .

    Have a look at this link and select the plugin that covers you needs .

    Thread Starter Lin Robinson

    (@lin-robinson)

    I should have posted this first, I suppose. But hated to leave an ugly page laying out there.

    This is the page in question https://myfunnybooks.biz/star-contributors

    It’s trying to do the right thing. show the custom menu sidebar.
    But instead it’s saying those pages don’t exist but they do.

    I used this code in the page template

    <?php if (is_page('star-contributors')):
          get_sidebar('star');
       else:
          get_sidebar();
       endif;
    ?>

    There are many plugins to customize the sidebar .
    My previous post gave you a link to select one .
    For no particular reason select the first plugin in the list .
    It has also a forum that can guide you to install / customize it’s functionality .

    Thread Starter Lin Robinson

    (@lin-robinson)

    Whoa! Okay… that seems to have done the trick.
    I avoid widgets in things that already work because they have a way of ttrashing everything already in place.
    But the Per Page Sidebar thing there is wonderful, made to order for my purposes. (At least it looks that way now ??

    Thanks for the tip, kostas.

    I’d hate for anybody to interpret my anxiety here as ungratefulness for free help on what is a free program to start with. I appreciate it a lot.
    As I say, I’m not qualified to help others on this forum–obviously I can barely cope with my own stuff.
    I DO contribute heavily to forums in other areas of expertise, and answer a lot of questions and requests for advice. I see it as being a question of taking what you need and giving what you can.

    Anyway, thanks to all of you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘I want a diferent menu for selected pages’ is closed to new replies.