Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #223701

    This took me a while to figure out so I’m posting here for others who may encounter this situation.

    My blog has the custom structure: /blog/%postname%/ which affects the portfolio item urls as /blog gets prepended to the slug

    Here’s how to fix: open enfold/includes/admin/register-portfolio.php on line 34:
    `’rewrite’ => array(‘slug’=>_x($permalinks[‘portfolio_permalink_base’],’URL slug’,’avia_framework’), ‘with_front’=>true),’
    change true to false

    How can I upgrade proof this fix? Should I place a copy of register-portfolio.php in child theme or is there an override function I can add to my function.php to modify the portfolio_register() function?

    Thank you for all the help Team Kriesi!

    #223716

    Hey ttem!

    Thanks for posting that and I hope it helps others as well :)

    Just adding it into a child theme wouldn’t actually replace it since the file is included with include which child themes don’t take priority on (or see at all).

    For right now it would just need to be changed in the parent.

    Best regards,
    Devin

    #223845

    Thanks Devin, would I be able to override that function in the child theme’s function.php file?
    I want to avoid having edit this file each time theme is updated.
    Thanks

    #225155

    Not right now but I’ll tag it for Kriesi and if he can add in a filter or something for it then it will be in a future change log.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘If blog is in separate directory here's to remove /blog from portfolio item urls’ is closed to new replies.