Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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

    #750316

    Hi 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,
    Ismael

    #752706

    hi 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

    #752710

    I 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

    #752753

    Hey!

    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,
    Ismael

    #754011

    Hi 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.php

    Cheers

    A

    #754121

    Hi!

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.