• Hi,

    I’m using WooCommerce on Genesis with Dynamik Website Builder, and using your plugin to link everything up.

    When I used the standard WooCommerce filter, ‘woocommerce_page_title’, the page titles in the shop do not change.

    This is because in the template-builder.php file for the Genesis Connect for WooCommerce plugin, the page title is hard coded, without using this filter, leaving me with no way to change the titles.

    As a short-term measure, I have modified the plugin file, which I hate
    doing, but if you can tell me another way, I’ve love to hear about it.

    The changes I made are as follows:

    Replaced line 251 of this file with:

    <?php
       $page_title = single_term_title( "", false );
       echo apply_filters( 'woocommerce_page_title', $page_title );
    ?>

    Replaced line 256 of this file with:

    $page_title = apply_filters( 'the_title', ( $shop_page_title = get_option('woocommerce_shop_page_title' ) ) ? $shop_page_title :
    $shop_page->post_title, $shop_page->ID ); echo apply_filters(
    'woocommerce_page_title', $page_title );

    This the allows me to customise the page title using custom PHP in my
    theme’s functions.php file, via the ‘woocommerce_page_title’ filter.

    I’d love it if you could apply a solution for this with a subsequent
    version of the plugin, so I don’t have to modify core plugin files to make this work as expected.

    Thank you,

    Nikki

    http://wordpress.org/plugins/genesis-connect-woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor studiograsshopper

    (@studiograsshopper)

    Hi Nikki,

    Dynamik Website Builder and GCW appear not to play nice together. However, having said that, I will be updating GCW templates to reflect some templating improvements introduced in WooC 2.1, the shop title filter being one of them. This should then solve the issue.

    Thread Starter kaplunkiigirl

    (@kaplunkiigirl)

    Excellent, thank you. I’ll keep an eye out for it.

    I have the same issue. Still looking for a filter that works senor Grasshopper 😉

    Any news yet? Thanks anyway. Greetz

    If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else’s topic.

    I am now closing this 4 month old topic as it references an older version of WordPress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Please add in page title filters to allow shop page titles to be changed’ is closed to new replies.