Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #873153
    marthadu
    Participant

    Hi

    I’m using integrity, and would like to use two drop down menus in my top bar, for my blog and my news page. Should this be possible? I can’t see how to do it.

    Thanks

    Martha

    #873806
    Friech
    Moderator

    Hi Martha,

    Thanks for writing in! But what type of drop down menu is this? And what item it should have? If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Cheers!

    #873981
    marthadu
    Participant

    Hi

    Thanks I have attached a screenshot of my front page. I would like to have a drop down menu on the blog option in the header, where the recent blogs come up in a list when you hover over Blog: The Curious Mystic. This would be to enable people to go straight from any page to a specific recent blog, without having to click through the home page and the blog page first.

    I would like to do the same for the News item on the menu.

    Is this possible?

    Thanks

    Martha

    #873983
    marthadu
    Participant

    Here is a smaller version of the attachment since the other one didn’t upload.

    #874673
    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the screenshot. You may edit your menu by going to Appearance > menus and you can insert sub menu items for both Blog and News menu items. You can insert the recent post items as your sub menu (http://prntscr.com/aqbvw5). To know more how you can create custom menus, please check this out: https://community.theme.co/kb/wordpress-custom-menus/

    Hope this helps.

    #875201
    marthadu
    Participant

    Hi

    This has worked, thank you so much. I’ve got the blog menu all sorted. The News menu is tricker though because it’s a page with the items listed on the page.

    Is it possible to set up my news page in a similar way to a blog with posts that all show up in the main news page? I already have a blog, so it would essentially mean having two blog style pages, each with separate posts.

    Is this possible?

    Thanks

    Martha

    #875756
    Rue Nel
    Moderator

    Hello Martha,

    Thanks for the updates! For your news page, you can have the news category archive page layout. As long as the contents of the News page is also a post, you can have the same layout with the blog page. If not, then it will be difficult because pages cannot be displayed the same as the post in a blog index format.

    Could your give further clarifications for your News page?

    Thank you.

    #893433
    marthadu
    Participant

    Hi

    I’ve finally found my login details so am able to carry on this conversation lol!

    Thank you for this. At the moment I’m not using the news category page, but only have two news items. So I’d like to change to this now while it’s a small job.

    So … how do I access the news category style? I’ve had a nosy, but haven’t been able to find anything.

    Thanks

    Martha

    #894078
    Jade
    Moderator

    Hi Martha,

    Please try to check in Appearance > Customize > Blog.

    Hope this helps.

    #894173
    marthadu
    Participant

    Hi Jade

    Thanks, but I already have a blog. I need to set up a news page and was told I needed the news category archive page layout. Do you know how I’d go about setting that up?

    Thanks

    Martha

    #894992
    Rue Nel
    Moderator

    Hey Martha,

    Please go to Appearance > Menus and add the News category next to your Blog menu items. Please see the screenshot:

    Hope this helps.

    #1081054
    marthadu
    Participant

    Hi

    Thanks for this, I’ve managed to set up a news category and list it on the front page. I now need to add the items. The only way I can see to do it is to create a new post. But how do I stop it from coming up on my blog page? The news items are completely separate.

    Thanks

    Martha

    #1081088
    Lely
    Moderator

    Hello Martha,

    Unfortunately, the blog page will display all post regardless of categories by default. We need some custom code to exclude this specific category on the blog page. You can check this https://theme.co/x/member/kb/how-to-setup-child-themes/ for setting up child theme 🙂

    And then add this code at your child theme’s functions.php with the category IDs you wish to exclude.

    function exclude_category( $query ) {
        if ( $query->is_home() && $query->is_main_query() ) {
            $query->set( 'cat', '-1' );
        }
    }
    add_action( 'pre_get_posts', 'exclude_category' );

    On this line $query->set( 'cat', '-1' );, replace 1 with the category ID of News.

    Hope this helps.

    #1081089
    marthadu
    Participant

    And is there any way to add pages to the actual category page? I know how to do it in the drop down menu, but it’s not showing in the category page. I realise I might need to create them as posts, but then I need them to not show up in my blog as above.

    Thanks!

    Martha

    #1081093
    Lely
    Moderator

    Hello Martha,

    Please check the previous reply. That code will exclude post of the specific category you have specified from the default blog index page.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-873153 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>