[Resolved] Make the Top Bar clickable

Home Forums Support [Resolved] Make the Top Bar clickable

Home Forums Support Make the Top Bar clickable

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #633948
    Matt

    Hiya,

    I was wondering whether there was a neat way of making the top bar clickable, like the top bar at https://tattly.com/?

    Many thanks,

    Matt

    GeneratePress 2.1.3
    GP Premium 1.6.2
    #633975
    David
    Staff
    Customer Support

    Hi there,

    we could use some javascript or you could just use a Custom HTML Widget containing your link with a specific class e.g:

    <a href="your_url" class="clickable-top-bar">My Clickable top bar</a>

    and then add this CSS:

    .inside-top-bar {
    	padding: 0;
    }
    .top-bar .inside-top-bar .widget {
    	display: block;
    }
    .clickable-top-bar {
    	display: block;
    	padding: 8px 0;
    	text-align: center;
    }
    #634002
    Matt

    Ugh! So easy! :o) Thanks David, very much appreciated!

    #634003
    David
    Staff
    Customer Support

    Haha – yes 🙂 Glad to be of help.

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