• Resolved Craigbavender

    (@craigbavender)


    Hey guys, thanks for reading.

    I understand that dynamic_sidebar() accepts a string parameter what correlates with the sidebar name, for instance here:

    <?php dynamic_sidebar( 'bottombar' ); ?>

    I’m needing to edit ‘bottombar’ but have no idea where to find it. Where is this generally stored in WP’s file structuring? I can’t find documentation that highlights this. Is this within my theme files? Is this in the admin? Where do I find the html to edit sidebar ‘bottombar’?

Viewing 9 replies - 16 through 24 (of 24 total)
  • Sorry – we do not delete topics on request except in very exceptional circumstances. This topic would not fall under the heading of “exceptional circumstances”.

    Thread Starter Craigbavender

    (@craigbavender)

    So that means, if I’m reading that correctly, that if I still do not have an answer for this question, ask it in another way perhaps in another section, it will be deleted because this one exists still?

    I am more than happy to answer your questions if you could try to keep the discussion calm.

    Thread Starter Craigbavender

    (@craigbavender)

    I’ve been calm the whole time.

    As for my question, I know that Dynamic_Sidebar() can accept a string parameter related to the title of the sidebar it’s inputting, and in the documents it does not highlight where this string is pointing to. Do you know this?

    The “string” is the id of the sidebars as used in register_sidebar().

    Thread Starter Craigbavender

    (@craigbavender)

    Yes, but where do I edit the sidebar content itself, as in, where do I edit the html for this sidebar? Is it in function.php? Sidebar?

    This is where we might part ways…

    You don’t edit anything in the parent theme itself because it is the default theme. This really is very important – unless you are forking 2013 into a completely new theme and are leaving an unedited copy in wp-content/themes on your server untouched.

    You create a child theme, copy the relevant template file into your child theme and then edit the template in the child theme. The exact template file you would need to copy varies from theme to theme. That said, there is no call to a “bottombar” in the 2013 theme, so I’m not sure where you got that from.

    Thread Starter Craigbavender

    (@craigbavender)

    I’m aware of this, that’s why originally I made the joke of lecturing someone else. I have forked the theme and it is a copy.

    The title of the sidebar is irrelevant, I’m asking, more specifically, where that string parameter within Dynamic_sidebar() is pointing to. If it were named ‘sidebar_x’ where should I look within the file structure of WordPress to find the contents and html of ‘sidebar_x.’

    I have forked the theme and it is a copy

    And we were supposed to have guessed that?

    Have you reviewed http://codex.ww.wp.xz.cn/Function_Reference/dynamic_sidebar

Viewing 9 replies - 16 through 24 (of 24 total)

The topic ‘Dynamic_sidebar() question’ is closed to new replies.