How to change Title and Permalink for Portfolio Pages?

resolved (2 posts) (2 voices)

  1. blackburn
    Member

    I'm using a portfolio to display winners here:

    http://covers.981freefm.ca/winners/

    2 issues though:

    1. When you click through, the URL seems unnecessarily long. For example, why is /gallery/winners/ added to the end of http://covers.981freefm.ca/portfolio/jason-williams/gallery/winners/

    2. Also, when you click in to a portfolio item, the title in the header is "PORTFOLIO" which I'd like to say "WINNERS"

    Ultimately I'd like the URL to read: http://covers.981freefm.ca/winners/jason-williams/ - is this possible?

    Posted 5 months ago #
  2. Elliott
    Support

    Hello blackburn,

    1. Open up /wp-content/themes/[your_theme]/lib/shortcodes/15-portfolio.php and around lines 216 - 220 you can take off the gallery variable,

    if( $wp_rewrite->using_permalinks() ) :
    	$url = home_url( '/' ) . 'portfolio/' . $post->post_name . '/gallery/' . $gallery_post . '/';
    else :
    	$url = htmlspecialchars( add_query_arg( array( 'gallery' => $gallery_post ), get_permalink( $id )) );
    endif;

    And do the same thing on lines 560 - 564.

    2. You can see where to change the portfolio text in this thread, http://mysitemyway.com/support/topic/blog-intros.

    Posted 5 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme