[Support request] move blog summary page to secondary location

Home Forums Support move blog summary page to secondary location

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #978394
    Steig

    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?

    #978533
    Leo
    Staff
    Customer Support

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

    #980567
    Steig

    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?

    #980589
    Leo
    Staff
    Customer Support

    Try this:

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

    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?

    #982760
    David
    Staff
    Customer Support

    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.

    #982803
    Steig

    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?

    #983070
    Leo
    Staff
    Customer Support

    To remove primary menu on the home page, you can use disable element:
    https://docs.generatepress.com/article/disable-elements-overview/

    #983324
    Steig

    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?

    #983448
    Leo
    Staff
    Customer Support

    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 🙂

    #983462
    Steig

    What countries should I whitelist?

    #983515
    Leo
    Staff
    Customer Support

    Canada and England 🙂

    #983527
    Steig

    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.

    #983568
    Leo
    Staff
    Customer Support

    Still can’t see it unfortunately.

    #983582
    Steig

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

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