Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #909409

    Hi there, we recently implemented the use of portfolio items on our website. The portfolio page that includes all of the portfolio items has “Portfolio” in the title tag and we’d like to change that but I can’t figure out how. Please advise.

    Thanks!
    Nout

    P.S. I’m running the latest version of WP, X theme and cornerstone.

    #909631
    Rahul
    Moderator

    Hello There,

    Thanks for writing in! To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – Link to your site

    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #909676
    This reply has been marked as private.
    #910187
    Lely
    Moderator

    Hello Nout,

    Thank you for the credentials. I can see that you have a child theme already.
    Copy the file _meta.php file from wp-content\themes\x\framework\views\global to wp-content\themes\x-child\framework\views\global.
    Open the copied file and replace the content with the following:

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_META.PHP
    // -----------------------------------------------------------------------------
    // Outputs meta data into the <head> of the site.
    // =============================================================================
    
    ?>
    
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php if(x_is_portfolio() || x_is_portfolio_category()){
    		  echo "Transloc";
    		  }else{
    		    wp_title( '' );
    		 } ?></title>
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    

    Change Transloc to your preferred title.

    Hope this helps.

    #910792

    Hey there,

    I did exactly as advised (I used FTP) and I still see “Portfolio” in the title tag of this page: http://transloc.com/careers-list <— this is the portfolio list page.

    Please advise.

    Thank you!

    Nout

    #911159
    Thai
    Moderator

    Hi Nout,

    Please update the previous code a bit:

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_META.PHP
    // -----------------------------------------------------------------------------
    // Outputs meta data into the <head> of the site.
    // =============================================================================
    
    ?>
    
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>
    	<?php 
    		if( is_post_type_archive( 'x-portfolio' ) || x_is_portfolio() || x_is_portfolio_category() ){
    			echo "Transloc";
    		} else {
    			wp_title( '' );
    		}
    	?>
    </title>
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">

    Hope it helps 🙂

    #911384

    Thank you so much, support team. Your latest code does the trick.

    Keep on being awesome!

    #911898
    Nabeel A
    Moderator

    Glad we could help 🙂

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-909409 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>