• Hi!
    I’m trying out MBT and it’s pretty cool!

    I am having a problem with the sidebar though. I’m using the Atahualpa theme framework. It allows me to configure whether there is a sidebar or not on a page or post… and I like that.

    However, it appears that MBT calls a sidebar itself and it shows up beneath the archive.

    If I turn all of the sidebars off in Atahualpa, the MBT goes full width, as it should, but still with the MBT sidebar below the archive.

    How can I turn off the MBT sidebar? Do I need to edit the MBT template?

    It sure would be convenient to have the MBT sidebar able to be turned on or off by a checkbox in the Settings!

    I know that I could make them disappear via css – targeting #sidebar[roll=complementary] and setting display to none… But that’s not very elegant. Perhaps as a fix, some code to deregister the MBT sidebar that could be placed in a child theme or must use plugin?

    Hope you can help!

    Thanks!
    Ken

    https://www.ads-software.com/plugins/mybooktable/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter kendawes

    (@kendawes)

    As I mentioned, I wish there was a more elegant way. This works well when using the Atahualpa theme. Maybe this will help someone else.

    I’ve removed the MBT in (only) Atahualpa by modifying the MBT wrapper-end.php file, located in the templates folder.

    Originally, the file ended with…

    get_sidebar();
    get_footer();

    I have changed it to…

    $template = get_option('template');
    if($template == 'atahualpa') {
    get_footer();
    } else {
    get_sidebar();
    get_footer();
    }

    Obviously, this is a less-than-perfect solution as the fix will disappear the next time the MBT plugin is updated.

    But… It does take care of my problem!

    Plugin Author Thomas Umstattd

    (@neovita)

    Ken

    Does your code snippet work when you move it in your theme’s functions file?

    Thread Starter kendawes

    (@kendawes)

    Hi Thomas,
    Unfortunately, no.

    I realize now that my fix isn’t perfect as it doesn’t call the footer properly for the theme. It gets the content of the footer fine, but it doesn’t get the formatting around the footer content properly.
    Atahualpa has its own footer setup that’s wrapped around the wp footer.

    Unfortunately… I’m reaching the limit of my knowledge…

    Plugin Author Thomas Umstattd

    (@neovita)

    I’m not sure what to tell you. MyBookTable works fine with all the major theme vendors (StudioPress, Woo, Elegant Themes) and all the default themes that come with WordPress. The problem with the free themes is that they are all coded differently and there is no way to support them all.

    I am unfamiliar with Atahualpa, but it looks to be a well supported theme. Often times where there is a theme issue, people are able to get help from the theme vendor. Typically they give you a code snipped to add to the theme that alleviates the problem.

    Plugin Author zookatron

    (@zookatron)

    Hi Ken,

    Unfortunately it’s not possible for us to make MyBookTable work out of the box with every theme, but we have put in a lot of work to try to make it as easy as possible to customize for situations just like this.

    MyBookTable uses a template system that you can read more about here: https://github.com/authormedia/mybooktable/wiki/Template-System-Overview To summarize the solution you need in this case, you will want to go into the Atahualpa theme folder in wp-content\themes\atahualpa and create a new mybooktable folder there. In that folder you can copy over the wrapper-end.php file that you edited. This will ensure that your fix will persist through any future updates to MyBookTable instead of being overwitten.

    From what I can see this clears up the problem with the duplicate sidebar under the content on Atahualpa. Can you be more specific about the “formatting around the footer content” problems that you’re seeing so I can direct you in how to address them?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Duplicate sidebar under archives’ is closed to new replies.