WordPress.org

Ready to get started?Download WordPress

Forums

Easel
[resolved] Sidebar IDs (6 posts)

  1. bryanbatcher
    Member
    Posted 1 year ago #

    I'm trying to use the Jetpack plugin with the Easel theme. Jetpack says to display a sidebar on the mobile site it needs to be named sidebar-1. Which sidebar in Easel is sidebar? Can it be changed? If there isn't a sidebar-1 can I make one sidebar-1? Could I get an example of what to change in the code? I'm not too familiar with the coding language here.

  2. marcelle42
    Member
    Posted 1 year ago #

    Sidebar ids are set when the sidebar is declared, usually in the functions.php file, usually with the register_sidebar function. You can change an existing sidebar is, or you can create a new sidebar. Note that changing an existing id may break some of the styles.

    You may want to make a copy of the Easel theme before you change it, or create a child theme. Otherwise, if the Easel theme is updated, your changes will be lost.

  3. bryanbatcher
    Member
    Posted 1 year ago #

    So I went into the function.php file and changed the id to sidebar-1. It didn't work. Does anyone know if the Jetpack Mobile theme even works with Easel when it comes to displaying a sidebar?

  4. bryanbatcher
    Member
    Posted 1 year ago #

    When I change the id in the functions file, the blog will no longer display what is in the sidebar. When go into widgets and add stuff back to the sidebar, it still doesn't show up. I changed the sidebar id back to the original id and everything that was in it before came back. So I think when I change the sidebar id, wordpress no longer associates the sidebar with that id. How do I change the id AND keep the link between that id and the sidebar id that wordpress uses to display that sidebar?

  5. Frumph
    Member
    Theme Author

    Posted 1 year ago #

    .. you can add another sidebar with the ID of 1 ya know

  6. Frumph
    Member
    Theme Author

    Posted 1 year ago #

    1 month, no communication - closing.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.