- This topic has 22 replies, 4 voices, and was last updated 1 year, 6 months ago by
David.
-
AuthorPosts
-
December 16, 2020 at 9:42 pm #1583771
John MacKenzie
I tried using the function code and settings on this page
https://generatepress.com/forums/topic/woocommerce-shop-move-page-title-and-breadcumbs-on-top/
adding a header element with display Generate_before_left_sidebar_Contentbut it just prints the shortcode? how can I fix the function for the shortcode to work?
yes I set the hook to run shortcode.Thnaks!
December 16, 2020 at 9:46 pm #1583773Elvin
StaffCustomer SupportHi,
Can you test the same shortcode on a page’s contents using the shortcode block on Gutenberg editor? To check if the shortcode actually works.
Let us know. 🙂
A wise man once said:
"Have you cleared your cache?"December 17, 2020 at 7:49 pm #1585193John MacKenzie
no it just prints the shortcode on a normal page as well.
December 17, 2020 at 8:16 pm #1585213Elvin
StaffCustomer Supportno it just prints the shortcode on a normal page as well.
Thanks.
That means the shortcode isn’t working.
To clarify: Is this the one you’ve copied?
function woocommerce_bcm() { woocommerce_breadcrumb(); } add_shortcode( ‘woocommerce_bc’, ‘woocommerce_bcm’ );
If so, can you check for syntaxes?
‘
should be replaced with'
. Curly/smart quotes can cause issues within the code. Straight quotes should be used instead.A wise man once said:
"Have you cleared your cache?"December 17, 2020 at 9:37 pm #1585261John MacKenzie
thanks! ok so now how to i remove the breadcrumbs from above the product container?
thanks!
JohnDecember 17, 2020 at 10:42 pm #1585297Elvin
StaffCustomer Supportthanks! ok so now how to i remove the breadcrumbs from above the product container?
With the WooCommerce Module enabled on Appearance > GeneratePress, “Display Breadcrumbs” can be disabled by unchecking it via Appearance > Customize > Layout > WooCommerce.
https://docs.generatepress.com/article/woocommerce-overview/#layout
A wise man once said:
"Have you cleared your cache?"December 18, 2020 at 8:18 am #1586127John MacKenzie
oh great thanks i thought that was going to turn off both but i should have tried.
thanks!
John
December 18, 2020 at 10:09 pm #1586699John MacKenzie
one more thing it appears the breadcrumbs dont stretch across the top of the page they stay squished in the left column?
thanks!
JohnDecember 19, 2020 at 6:06 am #1586955David
StaffCustomer SupportHi there,
you would hook your Shortcode into the
generate_after_header
hook and to stop it being full width you would need to wrap it in a grid-container div eg.<div class="grid-container"> <!-- shortcode here --> </div>
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 19, 2020 at 8:02 pm #1587670John MacKenzie
thanks!
December 20, 2020 at 4:59 am #1587928David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 23, 2020 at 9:14 pm #1592752John MacKenzie
reopening because this setting doesnt put the breadcrumbs above the left sidebar it puts it all the way over to the right of the screen (stretched) i need them to start above the left sidebar and extend overtop the main column depending on how long it is.
thanks!
December 24, 2020 at 2:53 am #1592954David
StaffCustomer SupportCan you provide a link to where i can see the issue.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 24, 2020 at 7:48 am #1593313John MacKenzie
thanks
December 24, 2020 at 8:44 am #1593371David
StaffCustomer SupportTry adding this CSS:
.nav.woocommerce-breadcrumb { max-width: 1200px; padding: 20px; margin: auto; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.