WordPress.org

Ready to get started?Download WordPress

Forums

HeatMap AdAptive
[resolved] Theme heatmap-adaptive: Theme not working with wp-bulletin-board Page (4 posts)

  1. sl_shah
    Member
    Posted 3 months ago #

    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();
  2. stuartwider
    Member
    Theme Author

    Posted 3 months ago #

    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' );
    ?>
  3. sl_shah
    Member
    Posted 3 months ago #

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

  4. stuartwider
    Member
    Theme Author

    Posted 3 months ago #

    glad you got it working.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.