-
AuthorPosts
-
January 29, 2015 at 7:28 pm #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
January 30, 2015 at 5:31 pm #388355Hi 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!
ElliottJanuary 30, 2015 at 6:07 pm #388392Hi 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! :)
February 1, 2015 at 6:19 pm #389046Hi!
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/67221517Regards,
AndyFebruary 2, 2015 at 10:24 am #389226Hi 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
February 2, 2015 at 11:57 am #389254Hi Krissie!
You can use this plugin to store custom functions without having to use a child theme.
Best regards,
JosueFebruary 2, 2015 at 12:00 pm #389257That’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, 10 months ago by Krissieg.
February 2, 2015 at 12:03 pm #389264I’ll tag him to this topic, please wait for his response.
February 2, 2015 at 1:55 pm #389295Hi!
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!
YigitFebruary 2, 2015 at 1:58 pm #389298This reply has been marked as private.February 2, 2015 at 2:11 pm #389305Hey!
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 nowRegards,
YigitFebruary 2, 2015 at 2:14 pm #389306That’s great! Ah I see.
And you updated this in the functionality plugin section?Thanks Yigit! :)
February 2, 2015 at 2:27 pm #389316Hi!
I added the code to Functions.php file in Appearance > Editor :)
Best regards,
YigitFebruary 2, 2015 at 2:32 pm #389320Great! Thanks very much everyone! :)
-
AuthorPosts
- The topic ‘What is wrong with this code?’ is closed to new replies.