• Resolved Henry

    (@henrybaum)


    Using the Avada theme, the genre/author/book pages are not accepting the sidebar set for the main MBT page. Can this be handled with CSS?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Henry

    (@henrybaum)

    To clarify: archive pages are showing as full width, which I realize is probably a theme issue, but hoping there’s a way to do it with MBT selectors. I’m having the opposite problem as this person:

    https://theme.co/apex/forums/topic/how-to-make-a-page-fullwidth-if-a-plugin-is-forcing-the-default-template/

    Plugin Author zookatron

    (@zookatron)

    If you can provide a link to the page in question I might be able to give you some advice on CSS. But many theme issues can only be solved by adding the proper templates, as described in the “Fixing Theme Problems” section of our developer wiki, which is not much harder than adding CSS to a theme.

    ~Tim

    Thread Starter Henry

    (@henrybaum)

    Thanks for the help. I can’t link to the site right now because it’s a dev site.

    I’m not very adept at php, and looking at the wiki I’d rather not have to add a new MBT folder every time I update the theme, but I use the plugin Code Snippets for other functions, so would some variant on this work?

    function yourtheme_add_template_folder($folders) {
        $folders[] = get_template_directory().'/mybooktable_templates/';
        return $folders;
    }
    add_filter('mbt_template_folders', 'yourtheme_add_template_folder');

    FWIW, made some progress with taking it out of Compatibility Mode. The sidebar area showed up, but without any actual widgets!

    Plugin Author zookatron

    (@zookatron)

    Hi again @henrybaum, sorry I haven’t had a chance to respond to this until now.

    Yes, if you want to put the template directory somewhere other than your theme you could use a modified version of that code snippet you referenced. You would just need to replace the “get_template_directory()” function with thatever folder your templates will be stored in. I’m not sure where exactly you would want to put these templates however, as themes and plugins are the primary places where templates on your site reside. It would probably be easiest to make a custom plugin or child theme that includes that snippet and contains the template files, but if you are not familiar with PHP development that may not be a trivial task.

    We’ve tried very hard to make MyBookTable as compatible as possible with as many themes as we can, but unfortunately it’s simply impossible to the fully compatible with all the different WordPress themes out there right out of the box. We realize that this makes it challenging for nontechnical users to always make their websites exactly how they want it without any sort of custom development, but unfortunately that’s the reality of working with relatively complex plugins like MyBookTable. We’re in the process of adding better integrations with some more popular themes like the Divi theme to give people better options for choosing themes that work well with MyBookTable, but unfortunately that’s not available yet.

    ~Tim

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sidebar Not Displaying on Archives’ is closed to new replies.