Home Forums Montana Theme Portfolio Url or Portfolio Slug

Portfolio Url or Portfolio Slug

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #990

    trisong
    Participant

      Hi,

      I would like to change the Portfolio Slug.

      Instead of mydomain.com/portfolio, I would like it to be mydomain.com/folio

      How can I do that ?

      Thank you,

      Jonathan

      Attachments:
      You must be logged in to view attached files.
      #996

      Tuan Nhu
      Keymaster

      Hi trisong

      If you want to change slug of portfolio custom post type, please do below steps
      1. Open themes/montana/inc/portfolio.php file
      2. find below code paragraph

      
      function montana_register_portfolio() {
      	$labels = array(
      		'name'               => _x( 'Portfolio', 'Post Type General Name', 'montana' ),
      		'singular_name'      => _x( 'Portfolio', 'Post Type Singular Name', 'montana' ),
      		'menu_name'          => __( 'Portfolio', 'montana' ),
      		'parent_item_colon'  => __( 'Parent Portfolio:', 'montana' ),
      		'all_items'          => __( 'All Portfolios', 'montana' ),
      		'view_item'          => __( 'View Portfolio', 'montana' ),
      		'add_new_item'       => __( 'Add New Portfolio', 'montana' ),
      		'add_new'            => __( 'New Portfolio', 'montana' ),
      		'edit_item'          => __( 'Edit Portfolio', 'montana' ),
      		'update_item'        => __( 'Update Portfolio', 'montana' ),
      		'search_items'       => __( 'Search portfolios', 'montana' ),
      		'not_found'          => __( 'No portfolios found', 'montana' ),
      		'not_found_in_trash' => __( 'No portfolios found in Trash', 'montana' ),
      	);
      	$args   = array(
      		'labels'      => $labels,
      		'supports'    => array( 'title', 'editor', 'thumbnail'),
      		'public'      => true,
      		'has_archive' => true,
      	);
      	register_post_type( 'portfolio', $args );
      }
      
      

      3. replace by

      
      function montana_register_portfolio() {
      	$labels = array(
      		'name'               => _x( 'Portfolio', 'Post Type General Name', 'montana' ),
      		'singular_name'      => _x( 'Portfolio', 'Post Type Singular Name', 'montana' ),
      		'menu_name'          => __( 'Portfolio', 'montana' ),
      		'parent_item_colon'  => __( 'Parent Portfolio:', 'montana' ),
      		'all_items'          => __( 'All Portfolios', 'montana' ),
      		'view_item'          => __( 'View Portfolio', 'montana' ),
      		'add_new_item'       => __( 'Add New Portfolio', 'montana' ),
      		'add_new'            => __( 'New Portfolio', 'montana' ),
      		'edit_item'          => __( 'Edit Portfolio', 'montana' ),
      		'update_item'        => __( 'Update Portfolio', 'montana' ),
      		'search_items'       => __( 'Search portfolios', 'montana' ),
      		'not_found'          => __( 'No portfolios found', 'montana' ),
      		'not_found_in_trash' => __( 'No portfolios found in Trash', 'montana' ),
      	);
      	$args   = array(
      		'labels'      => $labels,
      		'supports'    => array( 'title', 'editor', 'thumbnail'),
      		'public'      => true,
      		'has_archive' => true,
      		'rewrite'     => array('slug' => 'folio'),
      
      	);
      	register_post_type( 'portfolio', $args );
      }
      

      Best Regards,

      #1010

      trisong
      Participant

        Hi admin,

        One little note, I obviously had to go into

        Settings > Permalink and then “Save” to update the Permalinks.

        (after changing the code).

        I’m just leaving this note in case anybody has the same question but didn’t know about the permalinks.

        But, YES, THANK YOU ! It worked perfectly.

        Attachments:
        You must be logged in to view attached files.
        #55464

        Hello, Our portfolio only works with Layla Hover Layout. The other layouts don’t work.
        Could you help us? It’s very important to change the Portfolio Hover Style.

        Our site is: http://www.semeve.es/trabajos

        Thanks a lot.

        #55578

        Hien Phan
        Keymaster

        Dear migueljimenez-garcia,

        Please give us WordPress site account by using “access information”, see instruction here https://thimpress.com/knowledge-base/send-sites-access-information/. Our developer will check your site.

        If you need more assistance, feel free to let me know.

        Yours Sincerely,

        Hien Phan

        ———-

        ThimPress Support Team

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

      You must be logged in to reply to this topic. You can click here

      Best Deals
      Get Eduma Now

      For Only *
      $439 $69

       
      GRAB THE DEAL
      * Hurry up! Offer ends this Friday!

      Get Instant Access
      ấdsa
      ádasd
      ádsad
      Subscribe
      Give it a try, you can unsubscribe anytime.
      20% OFF all LearnPress premium add-ons

      GET 20% OFF COUPON NOW
      Your information will never be shared
      Learn More