- This topic has 25 replies, 3 voices, and was last updated 4 years, 8 months ago by Leo.
-
AuthorPosts
-
August 7, 2019 at 11:41 am #978394Steig
Hello,
I’ve had the website set up so the home page were all the blog pages. I’d like to change that so the blog posts are on a secondary page and the home page becomes a static page. That part is pretty straight forward. But along with that, I’d like different menus for the home page vs the blog page and clicking the logo at the top of the blog page should just refresh the blog page, instead of transporting the viewer back to the home page.Can you please provide me with some guidance?
August 7, 2019 at 3:16 pm #978533LeoStaffCustomer SupportHi there,
These plugins should help with the menu systems:
https://wordpress.org/plugins/if-menu/
https://wordpress.org/plugins/conditional-menus/As for the logo link, you will need this filter:
https://docs.generatepress.com/article/generate_logo_href/You can see some example usages here:
https://generatepress.com/forums/search/generate_logo_href/Let me know if you need help with the code π
August 10, 2019 at 7:06 am #980567SteigFor the logo link, using the examples you pointed too, I’ve been able to redirect it to the blog page, but I’d like to do that only on the blog page. On the home page clicking the logo should return the home page. Is there a way to detect the page the user is on and return just that page?
August 10, 2019 at 7:39 am #980589LeoStaffCustomer SupportTry this:
add_filter( 'generate_logo_href', function( $url ) { if ( is_home() ) { return 'URL ON POSTS PAGE'; } return $url; } );
August 12, 2019 at 9:48 pm #982589SteigThis worked well. Thanks! I’ve noticed however that my hope page has created a link in the primary navigation bar for the blog posts page. When I go to Appearance / Menu, nothing shows there that would cause this to happen. What can I do to keep this from happening?
August 13, 2019 at 4:35 am #982760DavidStaffCustomer SupportHi there,
in Appearance > Menu – have you created and assigned a menu to your navigation?
If you haven’t then WordPress automatically adds parent level pages to the menu.August 13, 2019 at 5:36 am #982803SteigI do have the menu assigned there, but with the above suggested php code, I’m blocking it from showing on the home page because I don’t want a menu on the home page. So the primary menu is currently showing on the block page only. Can I block any menu from showing on the home page?
August 13, 2019 at 7:52 am #983070LeoStaffCustomer SupportTo remove primary menu on the home page, you can use disable element:
https://docs.generatepress.com/article/disable-elements-overview/August 13, 2019 at 12:23 pm #983324SteigThat worked, but I’m now realizing that I need separate branding on the home page than what is on the posts page.
Can I have a different logo on the home page than what is on the posts page? And Can I have different color on the home page than posts page as well?
August 13, 2019 at 3:12 pm #983448LeoStaffCustomer SupportFor some reason, David and I aren’t able to access your site as we are both getting “Visitors from your country are not permitted to browse this site.”
Is this something you can unlock on your end?
What you are asking is doable – I just need to see your current layout to provide the easiest way.
Let me know π
August 13, 2019 at 3:44 pm #983462SteigWhat countries should I whitelist?
August 13, 2019 at 5:20 pm #983515LeoStaffCustomer SupportCanada and England π
August 13, 2019 at 5:47 pm #983527SteigThat should be open to you know. My preference would be to have the home page branding driven by the site branding in appearance and the blog have it’s own source of branding.
August 13, 2019 at 8:14 pm #983568LeoStaffCustomer SupportStill can’t see it unfortunately.
August 13, 2019 at 8:39 pm #983582SteigPlugin is deactivated. Please note that I’ve edited the URL to point to the staging site. blog page is currently at /001-001/
-
AuthorPosts
- You must be logged in to reply to this topic.