Site logo

[Resolved] Element Block after-logo float or align to right side please

Home Forums Support [Resolved] Element Block after-logo float or align to right side please

Home Forums Support Element Block after-logo float or align to right side please

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2434615
    Stephen

    Hi, I’ve inserted an Element Block after-logo and I would like it to align to the right side please but I cant work out how to do it.

    Currently its stuck on the left right next to the logo.

    Thanks

    #2434858
    Leo
    Staff
    Customer Support

    Hi there,

    Not sure if I fully understand.

    Are you trying to move the Login link all the way to the right?
    https://www.screencast.com/t/9ORqoRxqUm8

    If so try using a header widget instead:
    https://docs.generatepress.com/article/header-widget/

    #2434906
    Stephen

    Hi, yes thanks I want it to be like the header widget which would be on the right side.

    However I need to use an element block with a hook so I can have a one block showing for logged in users and another showing for non logged in users.

    Thanks
    Stephen

    #2435435
    David
    Staff
    Customer Support

    Hi there,

    add this CSS to position the block:

    
    .site-header .site-logo {
        margin-right: auto;
    }

    Block element Display Rules include Logged in and Logged Out users.
    So you can create 2 x elements, one for each of those rules.

    #2435500
    Stephen

    that is perfect thank you.

    For logout I’ve used https://www.mysite.com/my-account/customer-logout/

    #2435530
    David
    Staff
    Customer Support

    You’re welcome !

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