-
AuthorPosts
-
February 17, 2017 at 1:56 pm #748415
HI!
I would like to change the portfolio filter separator from / to |
I have tried to find –
$output .= “<span class=’text-sep {$term->slug}_sort_sep {$show_item}’>/</span>”;
in the masonry-entries.php as per another thread from 2014, but it doesn’t exist
Cheers
Andy
February 22, 2017 at 8:23 am #750316Hi FuzeCreative!
Thank you for using Enfold.
Please edit the portfolio.php file then look for this code around line 611:
$output .= "<span class='text-sep ".$category->category_nicename."_sort_sep'>/</span>";
Or add this in the functions.php file:
function ava_custom_script_mod(){ ?> <script> (function($){ function a() { $('.sort_by_cat .text-sep').text('|'); } a(); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_custom_script_mod');
Best regards,
IsmaelFebruary 28, 2017 at 2:07 am #752706hi ismael
when i add the code above to the functions.php, it breaks the site and i get the following warning:
Parse error: syntax error, unexpected end of file in /home/audioc/public_html/OZ/wp-content/themes/enfold/functions.php on line 578
Cheers
A
February 28, 2017 at 2:20 am #752710I cant find the portfolio.php – only single-portfolio.php, which doesn’t contain $output as stated in the other example. at the moment i have changed the symbol with a CSS hack, but it is causing other issues…
cheers
A
February 28, 2017 at 7:39 am #752753Hey!
when i add the code above to the functions.php, it breaks the site and i get the following warning:
Please copy the code directly from this forum, not from your email.
I cant find the portfolio.php – only single-portfolio.php
The file is located inside the config-template-builder > avia-shortcodes directory. You can only edit it via FTP or your cpanel.
Regards,
IsmaelMarch 2, 2017 at 12:39 am #754011Hi Ismael
I’m a coder, so I was particular about copying from the above and not my email :)
It broke the functions.php, but works in the theme-functions.phpCheers
A
March 2, 2017 at 7:54 am #754121Hi!
Ok. That’s odd. Is it working now? If possible, please move to a child theme because the modification will be remove once you update the theme.
// http://kriesi.at/documentation/enfold/using-a-child-theme/
Cheers!
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.