Best way to rename the sidebar and content IDs in the theme's files

This topic has 6 replies, 2 voices, and was last updated 10 years, 1 months ago ago by Eva Kemp

  • Avatar: sorin.manica
    sorin.manica
    Participant
    October 10, 2014 at 15:52

    Hello.

    I need for a third-party plugin to work (a plugin that makes the sidebar sticky) to rename the IDs of the sidebars / content in the theme files, or more exactly to replace the name of them from classes to IDs.

    I already have the solution, I only need you to point me in the right direction – the best way to make changes (to single.php most likely) for it to work.

    The suggested solution is:

    <div id=”mycontent” class=”page-content sidebar-position-left responsive-sidebar-bottom”>

    <div id=”mysidebar” class=”span3 sidebar sidebar-left”>

    since the only pages I need them to work is the shop pages… http://www.protopopescu.ro/demo-adi/site/product-category/furniture/

    Admin credentials are below. Thank you in advance.

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    October 10, 2014 at 17:18

    Hello,

    Sorry but your request is a bit unclear.
    Could you please clarify what exactly you need to change?

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: sorin.manica
    sorin.manica
    Participant
    October 13, 2014 at 10:22

    I need to make each of those two elements (page content and sidebar) to use an ID instead of a class. So it would be fantastic if you’d provide me the best way in which to modify Legenda theme’s files for this to work.

    As you can see here, when checking the elements with Chrome’s “Inspect Element” feature, the page content is identified as “page-content sidebar-position-left responsive-sidebar-bottom” while the sidebar content is identified as “span3 sidebar sidebar-left”.

    I need for them to use (be identified by) a simple ID instead of the class, so when using the “Inspect Element”, something like “div#my_content” to appear instead of the current “div.page-content.sidebar-position-left.responsive-sidebar-bottom”. Look here for an example from another theme, that uses IDs by default instead of classes to identify elements on the page.

    Hope this explanation is ok and that you can help me. Thank you 🙂

    Avatar: Eva
    Eva Kemp
    Support staff
    October 13, 2014 at 15:17

    Hello,

    Sorry, but there are no such features in our theme. Unfortunately we don’t provide such possibilities.
    Please take our apologies.

    Regards,
    Eva Kemp.

    Avatar: sorin.manica
    sorin.manica
    Participant
    October 14, 2014 at 22:37

    It’s a pity. That’s ok though, hope I’ll solve via another plugin.

    Avatar: Eva
    Eva Kemp
    Support staff
    October 15, 2014 at 12:18

    Hello,

    Thank you for understanding.
    If there are any questions let us know.

    Regards,
    Eva Kemp.

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘Best way to rename the sidebar and content IDs in the theme's files’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.