Forum Replies Created
-
AuthorPosts
-
mazeymaze
MemberHi again braddalton,
I have tried to test what you suggested, and maybe it could work (I would just need some more help) 🙂
This is the code I have pasted into my functions file and afterwards added the line of code you suggested to the $args['suffix'] part, so that the code is called at the end of the breadcrumb. It actually shows the widget that I'm after, but it messes up the site totally.
I think you are very close to solving my issue - I hope you will help me out. Just as an extra, the widget does not mess the site up when placed elsewhere, so there must be some sort of failure in what I'm doing when wanting to place it inside this div container.
genesis_register_sidebar( array( 'id' => 'breadcrumbwidget', 'name' => __( 'Breadcrumb', 'domain' ), 'description' => __( 'Add Content Here', 'domain' ), ) ); add_action( 'genesis_do_breadcrumbs', 'your_widget' ); function your_widget() { if ( !is_front_page() && is_active_sidebar('breadcrumbwidget') ) { genesis_widget_area( 'breadcrumbwidget', array( 'before' => '<div class="breadcrumbwidget widget-area" align="right">', 'after' => '</div>', ) ); } } //* Modify breadcrumb arguments. add_filter( 'genesis_breadcrumb_args', 'sp_breadcrumb_args' ); function sp_breadcrumb_args( $args ) { $args['home'] = 'Home'; $args['sep'] = ' / '; $args['list_sep'] = ', '; // Genesis 1.5 and later $args['prefix'] = '<div class="breadcrumb">'; $args['suffix'] = genesis_widget_area( 'breadcrumbwidget' );'</div>'; $args['heirarchial_attachments'] = true; // Genesis 1.5 and later $args['heirarchial_categories'] = true; // Genesis 1.5 and later $args['display'] = true; $args['labels']['prefix'] = 'You are here: '; $args['labels']['author'] = 'Archives for '; $args['labels']['category'] = 'Archives for '; // Genesis 1.6 and later $args['labels']['tag'] = 'Archives for '; $args['labels']['date'] = 'Archives for '; $args['labels']['search'] = 'Search for '; $args['labels']['tax'] = 'Archives for '; $args['labels']['post_type'] = 'Archives for '; $args['labels']['404'] = 'Not found: '; // Genesis 1.5 and later return $args; }
The visual result looks like this:
mazeymaze
MemberHi braddalton,
I am not sure that will work - for what I can see the filtering only has to do with the breadcrumb content - I would "simply" like to place a widget in the div-container that holds the breadcrumb.
Like this:
September 24, 2016 at 4:23 am in reply to: Not able to customize woocommerce product-archive page #193637mazeymaze
MemberGreat Victor - this works!
Thanks a lot for your help and patience 🙂
September 24, 2016 at 4:06 am in reply to: Not able to customize woocommerce product-archive page #193635mazeymaze
MemberHi Victor,
Maybe I'm not too good to inform exactly what I want to achieve. I am not trying to style my products - I simply want to style the page that lists the products. If you look at the page now, you will see that the page header and sub header text is missing a general padding, so that there is some whitespace before content is shown. My body background color is somewhat grey - my content background is white, so it's easy to see that the content needs some sort of margin or padding so it does not fill the entire content area.
If there is some way of knowing the exact page that displays the products maybe I could add a CSS class to the content div and in that way style the page? The div does contain a .content class, but this is the same class used on the product detail page, so adding style to this class would also affect the product detail page, which I do not want.
Hope you can help.
September 23, 2016 at 11:02 am in reply to: Not able to customize woocommerce product-archive page #193601mazeymaze
MemberThanks for responding again, Victor - I really appreciate it.
I have added my own stylesheet to my code and placed it in an order, so it loads after both the Genesis and Woocommerce stylesheet.
One thing that's troubling me is that all other pages out of the box are styled with padding etc. but for some odd reason this page isn't. I mean I have activated the Genesis Connect to make the connection from the framework to Woocommerce and everything from a standard point of view looks fine - but this page falls out of that category. Maybe I am missing something here?
Maybe I can get you to take a look at the site? Can you point me in the direction to how I can add padding around the content on the page https://www.kuhlmann-heating.com/product-category/drum-heaters/ - the .content class does react to my changes, but as you also know, the .content class is also located for the product-detail page, and on that page the styling is correct, so I do not want the padding to be on this page.
Thanks again.
mazeymaze
MemberJust as an extra I have now tried to rename both the archive-produkt.php file in genesis-connect and in the woocommerce folder and the page still displays, so it must use some other template?
mazeymaze
MemberHi again Victor (and others),
I still haven't been able to style my archive product page, so I really hope that someone can help me out in solving this 🙂 No matter what I do I can not seem to edit anything on the archive-product.php. I have tried to copy both the Woocommerce file and the Genesis Connect file, but no difference.
I have WordPress installed together with Woocommerce, Genesis, Genesis Connect and the Agentpress Pro child theme.
Crossing my fingers here.
Thanks
mazeymaze
MemberIf you take a look here (everything here is also under construction) https://www.kuhlmann-heating.com/product-category/drum-heaters/
As you can see I have two products (more coming) and also a site header + description. I need to style everything and not the products itself. The header, the description and the products all have no padding to the page, which I would like to add, so either I believe I have to add a wrapper with a class so I can style it, or add a class to the main div on this particular page.
I am quite new to WordPress, so still learning 🙂
Thanks a lot.
mazeymaze
MemberThanks for the quick reply, Victor.
I have tried to copy both the archive-product from the Woocommerce folder and the one from the Genesis-Connect, but neither one of them reacts to my editing. I have just tried basic editing in the file, uncommenting functions and filters, but nothing happens.
Basically what I am trying to accomplish is to add a wrapper around the content and having that wrapper containing a class so I can control padding etc. If this can be accomplished in another way than locating the "correct" archive-product, I am open for ideas.
Thanks a lot.
-
AuthorPosts