New Landing How can we help? Themeforest Theme Support Neighborhood WooCommerce Before Main Content Hook

Viewing 6 posts - 1 through 6 (of 6 total)
  • #39660
    christenprochaska
    Member
    Post count: 3

    Hello.

    I have content that is supposed to be displayed based on the woocommerce_before_main_content hook, however it is not showing. Can you tell me – is the file (archive-product.php) commenting this out? If so, could you please help me understand how to force it to show?

    Thank you.

    Christen

    <?php
    		/**
    		 * woocommerce_before_main_content hook
    		 *
    		 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
    		 * @hooked woocommerce_breadcrumb - 20
    		 */
    		do_action('woocommerce_before_main_content');
    	?>
    #40183
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi, it’s not commenting it out from what I can see from your code snippet, all the best!

    #40288
    christenprochaska
    Member
    Post count: 3

    I’ve reviewed the source code and see that it is showing there, however it looks like it has the visibility hidden. I’ve tried reviewing the css to see if I can find where this is being hidden, but I can’t – are you able to tell me how to force it to show? (I’ve confirmed this issue is with the Neighborhood theme as all shows correctly with the default WordPress themes.)

    Can you please review the page: http://pinholeandpixels.com/partners/test-vendor/ and see what I mean – there is extra space where the page title and breadcrumb trail are, especially when you compare it to a page that doesn’t have anything in the top block: http://pinholeandpixels.com/shop/business-tools/another-product/

    Here is the part of the source code I’m referring to (I’ve included down to the “Test Vendor” page title for reference on the page):

    <!--// OPEN #page-wrap //-->
    					<div id="page-wrap">
    	<div class="page-content clearfix"><div class="pv_shop_description">This is my shop description.</div>
    				
    	<div class="row">
    		<div class="page-heading span12 clearfix alt-bg alt-eight">
    			<div class="heading-text">
    				
    									
    					<h1>Test Vendor</h1>

    Thank you.

    #40668
    Melanie – SUPPORT
    Member
    Post count: 11032

    This text “This is my shop description.” is hidden at the very top of your page as you placed it in the main page wrap. It gets overlaid by the top bar.

    So there’s no way that the text will ever show up above the page title as it’s just placed randomly at the beginning of the content. There’s not even a background behind it or any styling applied to. 🙁

    The before main content hook is reserved more for javascript than for text that actually is supposed to show up.

    Cheers

    #47465
    christenprochaska
    Member
    Post count: 3

    Is there a way for me to edit the theme to allow this to show? – It shows correctly in the default WordPress themes, so it seems the way the plugin is written is fine. Thank you.

    #48574
    Melanie – SUPPORT
    Member
    Post count: 11032

    Yes there’s definitely a way to edit the theme, but I’m afraid you will have to hire a developer to help you with that.

    Thank you so much!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register