• Resolved RicaNeaga

    (@ricaneaga)


    Hello!

    I’m trying to use your plugin to make the sidebar fixed for a premium theme. You can find the demo of it here… https://8theme.com/demo/legenda/shop/

    Exactly for that kind of page I want to have the sidebar fixed.

    For the content, I think the ID is div.page-content.sidebar-position-left.responsive-sidebar-bottom

    and for the sidebar – div.span3.sidebar.sidebar-left

    Maybe I’m wrong, but if I’m wright that kind of long names cannot be entered in your plugin’s options.

    I’ve also tried the IDs from the theme’s options – main-content / main-sidebar / shop-sidebar / left-sidebar, to no result.

    Can you help me a little? Thank you in advance ??

    https://www.ads-software.com/plugins/standard-widget-extensions/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author blogger323

    (@blogger323)

    You need to add IDs in your theme.

    <div id="mycontent" class="page-content sidebar-position-left responsive-sidebar-bottom">
    <div id="mysidebar" class="span3 sidebar sidebar-left">

    Then, set options as ‘mycontent’ and ‘mysidebar’.

    Thread Starter RicaNeaga

    (@ricaneaga)

    Thank for your answer, but unfortunately I wasn’t able to make this change, although I tried many variants in the single.php of the theme. Maybe a function is needed, but I’m not such a skilful programmer.

    Also asked the theme authors / support to help me, as it’s a comercial theme, but they apologised and said they can’t help me in this matter.

    I’ve taken a look at the latest woocommerce themes, and they all use class instead of an ID to identify the content and the sidebar in the theme files.

    So can you please either:

    a) Make your plugin compatible with such themes.

    b) Provide in the FAQ of the plugin a more detailed explanation on how to change the theme files for this to work.

    Thank you again and if you want to take a look at the theme / a demo site of that theme, please leave an e-mail adress.

    Plugin Author blogger323

    (@blogger323)

    We should use an ID to identify a single element in a page because a class implies that there are multiple elements to be applied to. And usually it’s easy for theme developers to add IDs in their themes. So I have no plan to add the class-based-identification for the sidebar.

    You should learn the theme file hierarchy. Theme developers often put common parts, like a sidebar, in a separated place from single.php. Is there any files named like sidebar.php?

    Then, you still have difficulty to find where to modify, you can reach me by send a mail to blogger323 at gmail.com and show me theme files.

    Thread Starter RicaNeaga

    (@ricaneaga)

    Thank you for your answer and support.

    I’ll send you the theme files to your email adress, but please make afterwards also a (FAQ) tutorial for the plugin on how to modify such themes (as they’re many out there, and many not-so-advanced users need guidance on what & how to modify).

    Thank you again ??

    Plugin Author blogger323

    (@blogger323)

    After the investigation, I found that both the sidebar element and the content element of the Legenda theme have a float=left attribute. It results in the broken layout when the sidebar is fixed.

    It’s sad to say, but it’s difficult to use SWE in the Legenda theme.

    Plugin Author blogger323

    (@blogger323)

    After a week of silence, I’d like to mark this as resolved.

    Thread Starter RicaNeaga

    (@ricaneaga)

    Yes, it’s resolved, as I’ve found another solution.

    Thank you very much for the effort and it’s a pity you couldn’t make it work.

    Thanks again ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘A more complex content / sidebar ID – cannot be written in options’ is closed to new replies.