Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #576667

    Hi there,

    I’ve tried using this code that Yigit gave me awhile back and placing it in my child theme – but it doesn’t seem to stop the side navigation blocks showing up categories outside the category of posts I want displayed. Please can you have a look?

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

    Also, how do you change the colour of the side blocks? They’re too light at the moment.

    Thanks

    #576729

    Hi Krissie!

    The code that you present to us is not properly.
    That is because of the copying, so it seems not to also work.
    can u please paste it on a pastebin.com so we can try fix it?

    Best regards,
    Basilis

    #577103

    Hi Basilis,

    Yigit gave me the code along time ago? Maybe he can fix it?

    Cheers,

    Krissie

    #577104

    Oh and how do I control the colour of the side navigation blocks? Cheers

    #578301

    Hi!

    Could you please provide a link to the website? Note that if a post contains multiple categories, it will display other items with the same category. In order to have more control with the post navigation, limit the category of the posts to one.

    Regards,
    Ismael

    #580514

    Hi there,

    Yigit helped me with some code a while back which controlled the navigation side blocks. It would be nice to have the code again as I’d like to only allow the users to search through growmybiz case studies when they click on a case study post from the Growmybiz page case study feed. This is possible as Yigit did it for me before.

    Also, please can you answer about how I make the blocks darker? They’re not very noticeable at the moment.

    Login details below.

    Thanks,

    Krissie

    #581817

    Hey!

    Please add following code to Quick CSS

    #top .avia-post-nav {
        background: rgba(0,0,0,0.7);
    }

    Also, post navigation seems to be limited to same category on my end. Have you figured it out already? :)

    Cheers!
    Yigit

    #583330

    Hey Yigit!

    :)

    No I just used the code you gave me? Unless someone has fiddled with it without me knowing?

    Is the code you’ve given me to control the colour of the nav bars?

    Thanks matey! :)

    #583335

    Hey!

    Yes, the code i posted above is to change opacity level of post navigation buttons on the side :)
    0,0,0 is RGB value of the color and 0.7 is opacity level

    Best regards,
    Yigit

    #583337

    That’s wonderful, thanks Yigit.
    And the code? It must be working then? I put it in the child theme function section. Is this right? Can you just check it for me?
    If all okay, then we can close this thread? x

    #583340

    Hey!

    Yes, i checked your posts once again and they seem to be limited to the same categories only :)

    Best regards,
    Yigit

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