Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #387929

    HI Yigit,

    Sorry, I’ve had to roll back my website and didn’t manage to save the fix you recently did for me regarding this code:

    add_filter(‘avia_post_nav_settings’,’avia_same_category_filter’, 10, 1);
    function avia_same_category_filter($settings)
    {
    $settings[‘same_category’] = true;
    return $settings;
    }

    Please can you let me know what you did to it to make it work and where you put it in the functions code so that I can sort it when my website is rolled back and updated again? Thanks

    #388355

    Hi Krissie!

    You would just need to add it to the bottom of your functions.php file and it should work then. You can add it to a child theme functions.php file if you want it to be saved between updates, http://kriesi.at/documentation/enfold/downloads/.

    Cheers!
    Elliott

    #388392

    Hi Elliott,

    When I used the code before it didn’t work and Yigit kindly did something to it to make it work. Please can he get back to me with the amended code so I can add it in? I can’t use a child theme as it would mean setting up everything from scratch and I can’t do that as the website is live.

    Thanks for the suggestion though! :)

    #389046

    Hi!

    please tell us which problem you have and post the thread where Yigit helped you here. Otherwise we can’t know what you need.
    Using a child theme does not mean you need to set up everything from scratch. Please see this to know how to set up a child theme for enfold: http://vimeo.com/67221517

    Regards,
    Andy

    #389226

    Hi Andy,

    I’ve seen the tutorial and it states that activating a child theme means everything is reset. So I’ll have to set up the logos and the pages again and the site is live, so I can’t do that.

    Yigit did something to this code that he created for me, and I just need him to resend it to me with his corrections so I can add it to the theme functions file. It was to stop the arrows on the pages clicking through to another category. For example, when on the mentors page and looking at mentors, we didn’t want the arrows to continue through to news and advice.

    See what I mean at: http://www.growmybiz-canterbury.com

    Many thanks,

    Krissie

    #389254

    Hi Krissie!

    You can use this plugin to store custom functions without having to use a child theme.

    Best regards,
    Josue

    #389257

    That’s great Josue thanks! This is installed already and the code has been placed but the code doesn’t work properly.

    I just need Yigit to let me know his corrections to his code, then I can sort it. Cheers. :)

    This is the code I had originally from him. He said he changed something to the quote marks to make it work?

    add_filter(‘avia_post_nav_settings’,’avia_same_category_filter’, 10, 1);
    function avia_same_category_filter($settings)
    {
    $settings[‘same_category’] = true;
    return $settings;
    }

    • This reply was modified 9 years, 9 months ago by Krissieg.
    #389264

    I’ll tag him to this topic, please wait for his response.

    #389295

    Hi!

    Do you mind creating a temporary admin and posting it here privately? As far as i remember i only corrected double and single quotes. I would like to check if that is the case once again :)

    Cheers!
    Yigit

    #389298
    This reply has been marked as private.
    #389305

    Hey!

    Single quotes should look the one in front of same_category text and not like the one after it – http://i.imgur.com/bs3wO40.png
    Please review your website now

    Regards,
    Yigit

    #389306

    That’s great! Ah I see.
    And you updated this in the functionality plugin section?

    Thanks Yigit! :)

    #389316

    Hi!

    I added the code to Functions.php file in Appearance > Editor :)

    Best regards,
    Yigit

    #389320

    Great! Thanks very much everyone! :)

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘What is wrong with this code?’ is closed to new replies.