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

    Hi Kriesi Support Team

    You helped me do the following a while ago:

    Which was
    -> remove ‘All’ Category
    -> remove the first separator on the left (which came after ‘All’)
    -> default to first sort Category ‘anlageobjekte’

    We are now translating the website to English and are implementing it via WPML. I started to re-create all the Portfolio entries in EN (not all are done yet), when I noticed, that most of the above doesn’t work in the EN version of the website. I will post relevant links below.

    The code you gave me to fix the issue in the German version was the following:

    /* default to first category */
    add_action(‘wp_footer’, ‘ava_auto_click’);
    function ava_auto_click(){
    $(window).load(function() {

    The new ‘default’ category in English has the following slug ‘investment-properties’.

    I tried to copy/paste the code in the editor functions.php and replace ‘anlageobjekte_sort_button’ with ‘investment-properties_sort_button’ but it made everything stop working and I had to remove it from the functions.php via FTP.

    How can I get this also to work in the EN version of the website and also I don’t seem to be able to remove the | on the left.

    Thanks so much & kindest Regards,


    Hey Corina,

    Thank you for using Enfold.

    Please look for this line.


    Below, add this code.


    Best regards,


    Hi Ismael

    You are awesome. Thanks so much.
    Very grateful for your help.
    Have a great day.
    All the best,
    PS. You can close the thread.



    Glad it worked. Let us know if you need anything else. :)

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Default to first sort Category in WPML’ is closed to new replies.