Site logo

Archived topic

move blog summary page to secondary location

25 replies · Started by Steig on August 7, 2019

Viewing posts 1–15 of 26

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?

For 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?

Try this:

add_filter( 'generate_logo_href', function( $url ) {
    if ( is_home() ) {
        return 'URL ON POSTS PAGE';
    }

    return $url;
} );

This 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?

Hi 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.

I 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?

That 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?

For 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 :)

What countries should I whitelist?

Canada and England :)

That 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.

Still can't see it unfortunately.

Plugin is deactivated. Please note that I've edited the URL to point to the staging site. blog page is currently at /001-001/

This archived topic is closed to new replies.