• not a major issue but the post type is causing the Page title to be Archives vs Shop following the menu / page title that WooCommerce is using.

    a quick test of changing the theme over to customizr and the then it works correctly.

    I’m just lost on where / which php file to edit to correct the issue….
    Know its in the theme… just not sure where!

    figures help out a non-profit and get stuck on the easy stuff…

    appreciate any help!
    thx

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • lisa

    (@contentiskey)

    if you are sure it’s a theme issue, contact the theme support team for best guidance on what/where to change
    https://wordpress.org/support/theme/explore/

    Thread Starter viper_iii

    (@viper_iii)

    found the location…

    Explore: header-functions.php (inc/header-functions.php)
    now to do some tweaking…

    function explore_header_title() {
    	if( is_archive() ) {
    		if ( is_category() ) :
    			$explore_header_title = single_cat_title( '', FALSE );
    
    		elseif ( is_tag() ) :
    			$explore_header_title = single_tag_title( '', FALSE );
    
    		elseif ( is_author() ) :
    			/* Queue the first post, that way we know
    			 * what author we're dealing with (if that is the case).
    			*/
    			the_post();
    			$explore_header_title =  sprintf( __( 'Author: %s', 'explore' ), '<span class="vcard">' . get_the_author() . '</span>' );
    			/* Since we called the_post() above, we need to
    			 * rewind the loop back to the beginning that way
    			 * we can run the loop properly, in full.
    			 */
    			rewind_posts();
    
    		elseif ( is_day() ) :
    			$explore_header_title = sprintf( __( 'Day: %s', 'explore' ), '<span>' . get_the_date() . '</span>' );
    
    		elseif ( is_month() ) :
    			$explore_header_title = sprintf( __( 'Month: %s', 'explore' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
    
    		elseif ( is_year() ) :
    			$explore_header_title = sprintf( __( 'Year: %s', 'explore' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
    
    		elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :
    			$explore_header_title = __( 'Asides', 'explore' );
    
    		elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
    			$explore_header_title = __( 'Images', 'explore');
    
    		elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
    			$explore_header_title = __( 'Videos', 'explore' );
    
          elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :
             $explore_header_title = __( 'Quotes', 'explore' );
    
          elseif ( is_tax( 'post_format', 'post-format-link' ) ) :
             $explore_header_title = __( 'Links', 'explore' );
    
          elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) :
             $explore_header_title = __( 'Gallery', 'explore' );
    
          elseif ( is_tax( 'post_format', 'post-format-chat' ) ) :
             $explore_header_title = __( 'Chat', 'explore' );
    
          elseif ( is_tax( 'post_format', 'post-format-audio' ) ) :
             $explore_header_title = __( 'Audio', 'explore' );
    
    		elseif ( is_tax( 'post_format', 'post-format-status' ) ) :
    			$explore_header_title = __( 'Status', 'explore' );
    
    		else :
    			$explore_header_title = __( 'Archives', 'explore' );
    
    		endif;

    can see a bit in there… basically the end if there is no $explore_header_title then name them all Archives…

    nice… at least that what it looks like…

    was thinking I’d add a small snipped to catch it… but then… nah.. just change the last one….

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Hacking the theme files isn’t a good idea, do go ahead and post on the theme support forum to get the right answer.

    Thread Starter viper_iii

    (@viper_iii)

    appreciate the response, but if merely to repeat the standard line of AT YOUR OWN RISK
    – its implied… I got it.

    Really surprised you didn’t start with Child theme and here is the non-sense link
    ….

    	elseif( is_page()  ) {
    		$explore_header_title = get_the_title();
    

    something tells me there is something in that line that I need to add above to get the proper title just not sure of the exact clean wording..

    issue is woo uses post-type archive for the products page…
    already had to do some CSS mods to get the layout where I wanted… due to archvive.php not responding to template change again due to post_type

    then let dev know what can be added to his free theme to be woocommerce compatible…

    am totally fine with this post being moved.. Can barely figure out this forum format…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It’s not going to be moved. All we can do is give you the best advice to receive help.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘theme issue w/ woocommerce’ is closed to new replies.