• Hello,

    Below is my theme page.php file. Where should i put the: <?php content_product_adder(); ?> in the new product-adder.php file?

    <?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();
    
    // CONTENT HOOK
    add_action('heatmapthemead_the_content_hook', 'heatmapthemead_the_loop');
    
    	// THE LOOP HOOK
    	add_action('heatmapthemead_the_loop_hook', 'heatmapthemead_single_post');
    		// SINGLE POSTS HOOK
    		add_action('heatmapthemead_single_posts_hook', 'heatmapthemead_widget_position_blogabove');
    		add_action('heatmapthemead_single_posts_hook', 'heatmapthemead_widget_position_postinline');
    		add_action('heatmapthemead_single_posts_hook', 'heatmapthemead_single_post_header');
    
    		add_action('heatmapthemead_single_posts_hook', 
    
    'heatmapthemead_widget_position_postincontent');
    		add_action('heatmapthemead_single_posts_hook', 'heatmapthemead_the_content');
    		// add_action('heatmapthemead_single_posts_hook', 'heatmapthemead_like_buttons');
    
    		add_action('heatmapthemead_single_posts_hook', 'heatmapthemead_widget_position_postbelow');
    		add_action('heatmapthemead_single_posts_hook', 'heatmapthemead_comments');
    
    	// POST LOOP HOOK
    	add_action('heatmapthemead_the_post_loop_hook', 'heatmapthemead_the_loop_errors');
    
    add_action('heatmapthemead_the_content_hook', 'heatmapthemead_widget_position_blogbelow');
    add_action('heatmapthemead_the_content_hook', 'heatmapthemead_content_nav');
    
    get_sidebar();
    get_footer();
    
    get_template_part( 'unhook' );
    get_template_part( 'unhook-custom' );
    get_template_part( 'render' );
    ?>

    https://wordpress.org/plugins/ecommerce-product-catalog/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ndre

    (@ndre)

    Hi PixelOne,

    It seems that your theme requires some advanced integration (it doesn’t use a standard loop in the page.php file).

    It is impossible to do it 100% right looking only in your page.php file becanuse it is full of hooks. I should review all theme files to make it 100% accurate.

    I can only make a guess based on the hook and functions names. Please try:

    <?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();
    
    // CONTENT HOOK
    add_action('heatmapthemead_the_content_hook', 'heatmapthemead_the_loop');
    
    	content_product_adder();
    
    add_action('heatmapthemead_the_content_hook', 'heatmapthemead_widget_position_blogbelow');
    add_action('heatmapthemead_the_content_hook', 'heatmapthemead_content_nav');
    
    get_sidebar();
    get_footer();
    
    get_template_part( 'unhook' );
    get_template_part( 'unhook-custom' );
    get_template_part( 'render' );
    ?>
    Thread Starter PixelOne

    (@pixelone)

    Didn’t work, thanks for trying 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme integrations’ is closed to new replies.