Tagged: x
-
AuthorPosts
-
April 8, 2016 at 1:18 pm #873153
marthaduParticipantHi
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
April 9, 2016 at 1:30 am #873806
FriechModeratorHi 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!
April 9, 2016 at 5:40 am #873981
marthaduParticipantHi
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
April 9, 2016 at 5:43 am #873983
marthaduParticipantHere is a smaller version of the attachment since the other one didn’t upload.
April 9, 2016 at 8:53 pm #874673
Rue NelModeratorHello 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.
April 10, 2016 at 8:58 am #875201
marthaduParticipantHi
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
April 10, 2016 at 8:36 pm #875756
Rue NelModeratorHello 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.
April 21, 2016 at 6:10 am #893433
marthaduParticipantHi
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
April 21, 2016 at 12:45 pm #894078
JadeModeratorHi Martha,
Please try to check in
Appearance > Customize > Blog.Hope this helps.
April 21, 2016 at 2:04 pm #894173
marthaduParticipantHi 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
April 22, 2016 at 3:44 am #894992
Rue NelModeratorJuly 11, 2016 at 3:57 am #1081054
marthaduParticipantHi
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
July 11, 2016 at 4:24 am #1081088
LelyModeratorHello 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.
July 11, 2016 at 4:25 am #1081089
marthaduParticipantAnd 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
July 11, 2016 at 4:28 am #1081093
LelyModeratorHello 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-873153 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>

