Tagged: Product Grid, product slider, shop, title bar, woocommerce
-
AuthorPosts
-
March 25, 2014 at 9:02 pm #242987
hi there,
may there ist a possibility to change the “Shop” in the title bar to something other using the functions.php ?
i think it is handled by do_action( ‘woocommerce_before_main_content’ ); somehow, but i dont find a solution.if it is possibe by changing the woo template files, this is also a possible way, because i integrated other modifikations within my child theme.
greez
reneP.S. i need the change on the single product template only
- This topic was modified 10 years, 8 months ago by isee.
March 26, 2014 at 6:08 am #243149Hi rene!
You can deselect the page on Woocommerce > Settings > Pages > Shop Base Page. Create another page, name it anyway you want then add the Product Grid element. :)
Regards,
IsmaelMarch 27, 2014 at 8:08 pm #244045hey ismael,
thank you very much… after many nights of coding the really simple things are very difficult :-)))
i have another question, you may can help me:
i integrated the product_grid.php and the productslider.php with some modifikations as two own tab in enfolds template builder. so far everything worked well…
but now…
i try to expand the content within the slider (frontend) where price information and so on is shown with some custom product field values.
my question:
which file(s) are responsible for the output?may you help me?
greez
rene- This reply was modified 10 years, 8 months ago by isee.
March 27, 2014 at 8:55 pm #244059i think it is for example line 234 and following in productslider.php,,, right?
woocommerce_get_template_part( ‘content’, ‘product’ );
leading to
content-product.php
- This reply was modified 10 years, 8 months ago by isee.
March 28, 2014 at 7:06 am #244210Hi!
Glad you figured it out. The woocommerce template is controlled by config-woocommerce > config.php file. If you don’t mind please post a screenshot of what you’re trying to do as to give us more idea how to help you.
Regards,
IsmaelMarch 28, 2014 at 5:24 pm #244482hi ismael, got everything going this night… thank you :-)
one problem still there:
i now managed to get two different product types in one shop with customization,
but :-)
as i have only one shop page (which i dont use, i redirected it) i need two different titles in the title bar from enfold. is there another option to change this title?
<?php // Anpassungen wenn Product-Typ "MY-OWN-PRODUCT" global $post, $product; if (function_exists('get_product')) { $product = get_product( $post->ID ); if( $product->is_type( 'MY-OWN-PRODUCT' ) ) { // HERE I NEED TO CHANGE TITLE BAR WITH SOME FUNCTION/FILTER } else { // LEAVE THE STANDARD BAR FROM SHOP PAGETITLE } } ?>
March 30, 2014 at 11:52 am #245057Hi!
Yes – you can use the avf_title_args filter. An example code snippet can be found here: https://kriesi.at/support/topic/blog-header-goes-to-index-instead-of-blog/#post-238081
Cheers!
PeterApril 8, 2014 at 8:47 pm #248945heyyyy dude ….
thanx a lot!
i managed like that now:
global $post, $product; if (function_exists('get_product')) { $product = get_product( $post->ID ); if( $product->is_type( 'MY_PRODUCT_TYPE' ) ) { // Festen Titel ausgeben function fix_single_post_title($args,$id) { $args['title'] = 'MY_TITLE'; return $args; } add_filter('avf_title_args', 'fix_single_post_title', 10, 2); } else { // Produkt Name ausgeben function fix_single_post_title($args,$id) { $args['title'] = get_the_title($id); $args['link'] = get_permalink($id); return $args; } add_filter('avf_title_args', 'fix_single_post_title', 10, 2); } }
April 9, 2014 at 5:54 am #249085 -
AuthorPosts
- The topic ‘woocommerce title bar: change "Shop"’ is closed to new replies.