• Resolved sl_shah

    (@sl_shah)


    Hi,

    I am using Theme heatmap-adaptive v 1.4.8 with a sitting of 2 side bars. I have added jQuery Mega Menu and wp-bulletin-board plugins to my local installed site.
    Problem: When I open Forum Page on this theme, my sites sidebar disappears and drop down of my mega menu gets hidden behind background of WPBB background page. Can you please suggest where I need to change the code so that WPBB works fine with this theme.

    Code in wpbb-template.php

    get_template_part( 'unhook' );
    get_template_part( 'unhook-custom' );
    get_template_part( 'render' );
    add_action('heatmapthemead_the_content_hook', 'heatmapthemead_widget_position_blogabove');
    add_action('heatmapthemead_the_content_hook', 'heatmapthemead_widget_position_blogbelow');
    get_sidebar();
    require_once(ABSPATH.'/wp-content/plugins/wp-bulletin-board/php/wpbb-forum.php');
    get_footer();
Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author heatmap

    (@stuartwider)

    I’m not a mega menu or wp-bulletin-board user so I cant give specifics, but in relation to how you would call an external file into heatmap adaptive…

    The theme is hook based, so in order to include something external into it you should create a function for the external file include and then hook it into the relevant part of the theme.

    I’d recommend you start with page.php as your base template (copy and rename to wpbb-template.php – not sure what you are trying to do in your code example above though)

    so you’d make a function such as:

    function get_wpbb () {
    require_once(ABSPATH.'/wp-content/plugins/wp-bulletin-board/php/wpbb-forum.php');
    }

    maybe add that code to /inc/wp-tweaks.php

    Then in your template hook the function into the theme

    add_action('heatmapthemead_the_content_hook', 'get_wpbb');

    Remove any other bits of the template you dont need. So maybe…

    <?php
    /*
    This file is part of HeatMap Theme AdAptive
    See license.txt (distributed with this file) for details of
    license, contributors, copyright notices, credits and trademarks.
    */
    
    get_header();
    
    add_action('heatmapthemead_the_content_hook', 'get_wpbb');
    
    get_sidebar();
    get_footer();
    
    get_template_part( 'unhook' );
    get_template_part( 'unhook-custom' );
    get_template_part( 'render' );
    ?>
    Thread Starter sl_shah

    (@sl_shah)

    Yo Yo…..the solution worked and now I am able hook other functions as well. Thanks for quick help

    Theme Author heatmap

    (@stuartwider)

    glad you got it working.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Theme heatmap-adaptive: Theme not working with wp-bulletin-board Page’ is closed to new replies.