Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #169160
    lbourgeois
    Participant

    I went to Appearance->Customize->Essential Content Types Plugin->Portfolio and entered what I wanted in the archive title and archive content fields. But the title remains as “Archives: Projects” and “Portfolio Items”

    How can I change this?
    http://www.theltdform.com/portfolio/

    #169185
    Skandha
    Keymaster

    @lbourgeois: To change the Portfolio Archive Title and sub-title you will need to create a child theme doa little bit of customization. Let me know if you are familiar with child theme customziation so that I can guide you otherwise I suggest you to hire a customizer to get it done.

    Kind Regards,
    Skandha

    #169215
    lbourgeois
    Participant

    Then what do those fields in Essential Content Types Plugin Customization do?

    #169278
    Skandha
    Keymaster

    @lbourgeois: Those fields are for when you enable the Portfolio section on Homepage or Entire Site via Customizer.
    For example: in this link https://catchthemes.com/demo/audioman-light/
    Portfolio Archive Title option will change => Latest Release
    Portfolio Archive Sub-Title option will change => Discover our newest amazing albums and singles.

    I hope this clears your doubt.
    Kind Regards,
    Skandha

    #178752
    lbourgeois
    Participant

    I have a child theme now, could you please let me know how to change this title?

    Thanks

    #178756
    Skandha
    Keymaster

    @lbourgeois: Hello there,
    I am not able to access your site. Please let me know when your site is accessible.

    Kind Regards,
    Skandha

    #178808
    lbourgeois
    Participant

    My site is now live here: https://kelliskreativedance.com/portfolio/

    #178839
    Skandha
    Keymaster

    @lbourgeois: Hello there,
    Go to => Child Theme Folder => functions.php and add the following Code.

    // To change Portfolio Archive Page Title
    function audioman_header_title( $before = '', $after = '' ) {
    	if ( is_front_page() ) {
    		$header_media_title = get_theme_mod( 'audioman_header_media_title' );
    		if ( $header_media_title ) {
    			echo $before . wp_kses_post( $header_media_title ) . $after;
    		}
    	} else if ( is_home() ) {
    		$header_media_title = get_theme_mod( 'audioman_static_page_heading','Archives' );
    		if ( $header_media_title ) {
    			echo $before . wp_kses_post( $header_media_title ) . $after;
    		}
    	} elseif ( is_singular() ) {
    		if ( is_page() ) {
    			if( ! get_theme_mod( 'audioman_single_page_title' ) ) {
    				the_title( $before, $after );
    			}
    		} else {
    			the_title( $before, $after );
    		}
    	} elseif ( is_404() ) {
    		echo $before . esc_html__( 'Nothing Found', 'audioman-pro' ) . $after;
    	} elseif ( is_search() ) {
    		/* translators: %s: search query. */
    		echo $before . sprintf( esc_html__( 'Search Results for: %s', 'audioman-pro' ), '<span>' . get_search_query() . '</span>' ) . $after;
    	} elseif( is_post_type_archive('jetpack-portfolio') ) {
    		echo $before . esc_html__('Portfolio Projects') . $after;
    	}
    	else {
    		the_archive_title( $before, $after );
    	}
    }
    
    //To change Portfolio Archive Page Sub-title
    function audioman_header_description( $before = '', $after = '' ) {
    	if ( is_front_page() ) {
    		echo $before . '<p>' . wp_kses_post( get_theme_mod( 'audioman_header_media_text', esc_html__( 'Go to Theme Customizer', 'audioman-pro' ) ) ) . '</p>' . $after;
    	} elseif ( is_singular() && ! is_page() ) {
    		echo $before . '<div class="entry-header"><div class="entry-meta">';
    			audioman_posted_on();
    		echo '</div><!-- .entry-meta --></div>' . $after;
    	} elseif ( is_404() ) {
    		echo $before . '<p>' . esc_html__( 'Oops! That page can&rsquo;t be found', 'audioman-pro' ) . '</p>' . $after;
    	} elseif( is_post_type_archive('jetpack-portfolio') ) {
    		echo $before . esc_html__('Check out my posts here') . $after;
    	}
    	else {
    		the_archive_description( $before, $after );
    	}
    }

    Find and Replace the text Portfolio Projects with the title of your choice and
    Find and Replace the text Check out my posts here with the sub-title of your choice.

    Let me know if this works out!
    Kind Regards,
    Skandha

    #178896
    lbourgeois
    Participant

    Thank you! That worked for the title and sub-title. However, my homepage doesn’t have a subtitle and when I used the sub-title code, it put <p></p> in the text of my homepage subtitle.

    #178898
    lbourgeois
    Participant

    I also just discovered that with that code in place for the title, if I do a search on the page, the title displays as “Search Results for: <span>fun</span>”

    #179020
    Skandha
    Keymaster

    @lbourgeois: Hello there,
    I will look into the code on your site to debug the issue. For that I will need your WP Admin Credentials. I will contact you shortly by email.

    Kind Regards,
    Skandha

    #179733
    Skandha
    Keymaster

    @lbourgeois: Hello there,
    I have fixed the issue <span>fun</span> in the search results. Please check and let me know if there are anymore issues.

    Kind Regards,
    Skandha

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Portfolio archive title’ is closed to new replies.