Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Customizing the URL for portfolio and products
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Customizing the URL for portfolio and products
- This topic has 35 replies, 6 voices, and was last updated 10 years by Swift Ideas – Ed.
-
Posted in: Neighborhood
-
April 3, 2014 at 2:16 pm #64236
That sounds great! I will backup functions.php to my local files if I want to edit this file later.
Thanks for superb help!
April 3, 2014 at 2:24 pm #64244Hi,
You most welcome . I’m glad that issue resolved .
Thanks 🙂
With Best Regards
Swift IdeasApril 8, 2014 at 7:10 am #65172Hi
We have tested the site thoroughly and found that there are problems with the translation of product related pages. Example: The text “Showing all 11 products” on this page http://www.taga.no/wp2013/produkter/ and “Description”, “Additional information” etc. on http://www.taga.no/wp2013/produkt/taga-chistorra/ (all product pages)I have translated it in WPML, but changes doesn’t show. Do you think this may be related to the changes? The translations worked fine until we updated functions.php
Best regards,
RogerApril 9, 2014 at 8:41 am #65560Hi,
This is not related to the changes and please contact to plugin developer about this issue .
ThanksApril 11, 2014 at 2:49 pm #66432I have the same request. I want to edit my portfolio items URLs. I also have the WPML plugin. WPML is not active yet though.
In other words, I need a solution that will work both for my Swedish version of the site and also later the English one.
This thread doesn’t show what you guys did to edit the URLs. Please let me know too.
Also, I believe the ability to change URL on porfolio items is basic SEO that really should be there in the next update of Neighborhood.
Cheers!
April 14, 2014 at 9:03 am #66770Hi
Thanks for the feedback, will let the developer know and will hopefully be able to get this implemented
– Kyle
April 14, 2014 at 10:05 am #66784Another vote for the URLs. Im not using the portfolio option as much as id like because of he URLs.
April 14, 2014 at 1:24 pm #66912OK. But just to make it clear, do you guys mean that we can’t edit the portfolio URL:s even in the main language (without the WPML plugin being involved)?
April 14, 2014 at 1:27 pm #66914Hi @lobsterass,
Not sure if I’m following what you mean? Do you mean the item name in the URL, or the base “/portfolio”?
– Ed
April 14, 2014 at 1:42 pm #66927Hi!
I don’t necessarily need the base. The most important thing for me is to be able to create SEO-friendly URL:s that somewhat corresponds to my H1 on that page.
For example, for a portfolio item with lets say a book cover design I made, I want to be able to call it something like:
http://monroedesign.se/graphic-design-bookcover-italy-book/
<3
April 14, 2014 at 2:01 pm #66952SEO and ‘pretty’.
For me.
This is what it is- http://kastylephotography.net/?portfolio=wedding
Id like- http://kastylephotography.net/portfolio/wedding
My last couple themes generated URLs like above url/portfolio/name.
April 15, 2014 at 6:53 am #67098Hi,
@kastyles –
Please open to edit portfolio-type.php at /themes/neighborhood/includes/custom-post-typesFind this code at line 49 'rewrite' => false, Replace with 'rewrite' => array('slug'=>'portfolio'),
———————- OR ———————————
Please put this code at your functions.php under child theme directory remove_action( 'init', 'portfolio_register' ); add_action('init', 'portfolio_register_new'); function portfolio_register_new() { $labels = array( 'name' => _x('Portfolio', 'post type general name', "swiftframework"), 'singular_name' => _x('Portfolio Item', 'post type singular name', "swiftframework"), 'add_new' => _x('Add New', 'portfolio item', "swiftframework"), 'add_new_item' => __('Add New Portfolio Item', "swiftframework"), 'edit_item' => __('Edit Portfolio Item', "swiftframework"), 'new_item' => __('New Portfolio Item', "swiftframework"), 'view_item' => __('View Portfolio Item', "swiftframework"), 'search_items' => __('Search Portfolio', "swiftframework"), 'not_found' => __('No portfolio items have been added yet', "swiftframework"), 'not_found_in_trash' => __('Nothing found in Trash', "swiftframework"), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => false, 'menu_icon' => 'dashicons-format-image', 'rewrite' => array('slug'=>'portfolio'),, 'supports' => array('title', 'editor', 'thumbnail'), 'has_archive' => true, 'taxonomies' => array('portfolio-category') ); register_post_type( 'portfolio' , $args ); }
Thanks 🙂
With Best Regards
Swift IdeasApril 15, 2014 at 12:27 pm #67257Thank you, I’ll try it out today!
April 15, 2014 at 12:30 pm #67260No problem 🙂
– Kyle
April 15, 2014 at 1:26 pm #67294Hi Kyle and Mohammad,
I’ve spent 2 hours trying to do this. Please provide all the info needed.
I edited portfolio-type.php at /themes/neighborhood/includes/custom-post-types
and I found line 49
‘rewrite’ => false,
and I replaced with
‘rewrite’ => array(‘slug’=>’portfolio’),Then my portfolio links obviously stopped working. Where do I edit the portfolio item URL:s?
I also tried the functions.php but I have no clue where to edit what in where? There’s no headline for CHILD THEME there…and when I search for ( ‘init’, ‘portfolio_register’ ); nothing comes up.
Very frustrating. I had to change back the portfolio-type.php now as my site is live.
Please help.
-
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.