Portoflio page links/breadcrumbs - by devodrome

This topic has 4 replies, 2 voices, and was last updated 9 years ago ago by Eva Kemp

  • Avatar: devodrome
    devodrome
    Participant
    March 29, 2015 at 18:26

    Hello,

    The link to the Portfolio page is http://some.domain.com/portfolio/, and the breadcrumb is “Home / Portfolio” (both correct).

    However, the link to the project page is http://some.domain.com/etheme_portfolio/project-name/ but it should be http://some.domain.com/portfolio/project-name/ instead. How could I correct the link?

    Also, the breadcrumb in the project page is “Home / Projects / Project Name” but is should actually be “Portfolio” instead of “Projects” (since Project actually links to http://some.domain.com/portfolio/). How could I correct the breadcrumb?

    Thanks,
    Victor

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    March 30, 2015 at 19:12

    Hello,

    To change “Projects” text in breadcrumbs you need edit the file wp-content/themes/idstore/code/portfolio.php (line 13).
    If you want to change etheme_portfolio slug you need to edit idstore/code/portfolio.php, find the line 28:
    $args = array(
    and add the following code to the list (after line 40 for example) :
    'rewrite' => array('slug' => 'portfolio')

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: devodrome
    devodrome
    Participant
    March 30, 2015 at 21:14

    Hello Eva,

    I was hopping that the text “Projects” can be easily changed/translated using the .po and .mo files (as most of the other theme texts).

    I changed the files as you instructed me, and here is the outcome:
    – the “Projects” text is now changed to “Portfolio”
    – all the project pages are now “Page not found” (even though the link looks fine: http://some.domain.com/portfolio/project-name/)

    Another questions though: changing these theme core files is upgrade safe? Or do I have to keep tracking of all the files I modify/fix in order to change them on each subsequent upgrade?

    Please advise,
    Victor

    Avatar: Eva
    Eva Kemp
    Support staff
    March 31, 2015 at 08:14

    Hello,

    You need resave Permalinks settings to fix the error.
    You need keep the files safe and reupload them after each theme update.
    Sorry for inconveniences.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.