-
AuthorPosts
-
April 11, 2018 at 3:36 am #940155
at this site
http://greenlifestructures.com
which is not live yet – guest access password = greenhouse1this page http://greenlifestructures.com/shop/ along with most of the others has the secondary Enfold menu on the right
however – once in the products pages eg http://greenlifestructures.com/product/black-pipe-clips/ the secondary menu appears at the bottom left of the pageis there some CSS or something that would fix this?
April 11, 2018 at 10:40 am #940382Hey smarta-brett,
The use of color section always pushes the sidebar below. You might want to use a 1/1 or some other element instead.
If you need further assistance please let us know.
Best regards,
VictoriaApril 12, 2018 at 2:32 am #940736Hi Victoria
I’m sorry – don’t understand what you mean by “The use of color section”
the default shop page displays with the menu to the right on the first two pages that show categories – but as soon as you visit the product page itself the menu moves to the left
I set up a test page called Shop 2 – using a 1/1 with a products grid and the same thing happens
April 13, 2018 at 7:19 am #941298Hi smarta-bret,
Please refer to this link for a possible solution.
https://kriesi.at/support/topic/sidebar-rechts-single-page/#post-580220
If you need further assistance please let us know.
Best regards,
VictoriaApril 14, 2018 at 1:12 am #941773ok – i tried that but when I try to edit the functions-enfold.php file by adding the code shown at the bottom of the file it will not save and shows the error
Your PHP code changes were rolled back due to an error on line 1908 of file wp-content/themes/enfold/functions-enfold.php. Please fix and try saving again.
Cannot redeclare avia_close_image_div() (previously declared in wp-content/themes/enfold/config-woocommerce/config.php:1234)
April 14, 2018 at 1:26 am #941776also – please note that this menu is not woo-commerce generated
it is created in Appearance/Menu and is called “Sider Products Links”
April 16, 2018 at 9:37 am #942483Hi,
Thank you for the update.
You need to put the code in the functions.php, not the functions-enfold.php file. Adjust the code a bit.
add_action('init','ava_product_sidebar_init_mod', 50); function ava_product_sidebar_init_mod() { remove_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20); add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div_mod', 20); add_action( 'woocommerce_after_single_product_summary', 'avia_add_sidebar_mod', 19); } function avia_close_image_div_mod() { echo "</div>"; } function avia_add_sidebar_mod() { global $product, $avia_config; if( is_product() ) { $avia_config['currently_viewing'] = "shop_single"; get_sidebar(); } }
Use the same css codes.
Best regards,
IsmaelApril 16, 2018 at 11:24 pm #942816brilliant – thank you
April 17, 2018 at 8:24 am #943004Hi,
Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardApril 17, 2018 at 9:23 am #943015yes, thanks again, close it please
April 18, 2018 at 4:51 am #943385 -
AuthorPosts
- The topic ‘wooCommerce menu position problem’ is closed to new replies.