[Resolved] Sitetitle in navbar instead of icon?

Home Forums Support [Resolved] Sitetitle in navbar instead of icon?

Home Forums Support Sitetitle in navbar instead of icon?

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #224948
    Anders

    Hi Tom,

    Is there a way to get the sitetitel in the navbar instead of the navbar icon?

    // Leif

    #225010
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You can use the generate_inside_navigation hook.

    Something like this:

    add_action( 'generate_inside_navigation','generate_site_title_navigation' );
    function generate_site_title_navigation()
    {
        ?>
        <div class="menu-site-title">
            My site title
        </div>
        <?php
    }

    Then style it:

    .menu-site-title {
        float: left;
        font-size: 20px;
        color: #FFF;
    }

    Hope that gets you started πŸ™‚

    #225047
    Anders

    Thanks Tom,

    This solved it, though I think this should have been feature in the settings under “Sticky Navigation Logo” in layout settings for people like me that does not know php and stuff .. πŸ˜‰ .. Wink, Wink ..

    Anyway thanks again it solved the problem.

    #225106
    Tom
    Lead Developer
    Lead Developer

    Been thinking that recently as well – definitely on my to-do list πŸ™‚

    #283289
    Jonathan

    I’d love to see this added as a feature as well.

    I’ve added the code above according to instructions, using code snippets + simple css, but it doesn’t quite work. It’s displayed correctly in the sticky-bar, but it’s also displayed in the regular header (on initial load) with the ordinary site title and nav menu (which it pushes to the side).

    Can it be invisible (on initial load) if another class is used? I’m no developer, so I can’t really figure this out myself.

    #283316
    Tom
    Lead Developer
    Lead Developer

    You can add this CSS to it:

    .menu-site-title {
        display: none;
    }
    
    .navigation-stick .menu-site-title {
        display: block;
    }

    Let me know if that helps or not πŸ™‚

    #284405
    Jonathan

    Tom, thanks a lot, it did work! πŸ™‚

    #284617
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #329538
    Georgios

    Hello
    Quick question related
    I use text for site title but while i scroll the site title wont appear
    Is there a way to make it appear and while in sticky mode of the menu?

    thank you

    #329556
    Leo
    Staff
    Customer Support
    #329561
    Georgios

    Hello
    Yes actually i use that code but it appears in the header also
    i would like to appear only as i scroll down like if i had a small sticky logo?
    take a look- its a test url : gegeor.net/https://gegeor.net/gr/

    #329564
    Leo
    Staff
    Customer Support
    #329575
    Georgios

    Great,worked!

    Now it only appears while scrooling:)
    How can i place it on the left side?
    for styling i guess it needs CSS?

    #329576
    Leo
    Staff
    Customer Support
    #329578
    Georgios

    many thanks, exactly what i was looking for:))

    thank you

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