Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #786839

    Studio57
    Participant

    I’ve been reading this forum but I can’t seem to find the right solution.

    I found the code below and added it to the TOPBAR CONTENT box, anabled Legacy Font Classes in Cornerstone Settings (is this a bad or old fashioned thing?) but I can’t get it to work:

    <i class=”x-icon x-icon-envelope”></i> | <i class=”x-icon x-icon-user”></i> | <i class=”x-icon x-icon-cart”></i>

    Can you help me with the right HTML-code (sorry — not a programmer…) for my email address for example “info@emailaddress.nl” and phone number “+31 6 12 34 56 78”? There’s no need for vertical separators per se..

    #787039

    Thai
    Moderator

    Hi There,

    Please try adding the following HTML instead:

    <a href="/contact"><i class='x-icon x-icon-envelope' data-x-icon=''></i></a> | <a href="/my-account"><i class='x-icon x-icon-user' data-x-icon=''></i></a> | <a href="/cart"><i class='x-icon x-icon-cart' data-x-icon=''></i></a>

    Hope it helps 🙂

    #787153

    Studio57
    Participant

    Thanks, but not quite… 🙂

    I want to show a phone icon and my phone number +31 6 12 34 56 78. Next to that I want to show an envelope/email icon and my emailaddress info@example.com. Can I make the emailaddress clickable?

    Can you help me with the correct HTML-code?

    #787400

    Thai
    Moderator

    Hi There,

    Please update the HTML code to this:

    <a href="/contact"><i class='x-icon x-icon-phone' data-x-icon=''></i> +31 6 12 34 56 78</a> | <a href="mailto:info@example.com"><i class='x-icon x-icon-envelope' data-x-icon=''></i> info@example.com</a> | <a href="/my-account"><i class='x-icon x-icon-user' data-x-icon=''></i></a> | <a href="/cart"><i class='x-icon x-icon-cart' data-x-icon=''></i></a>

    Hope it helps 🙂

    #787773

    Studio57
    Participant

    Thanks! Not quite what I meant but I think I’ve managed it:

    <a href="mailto:info@studio57.nl"><i class='x-icon x-icon-envelope'></i>  Email me</a> &nbsp; &nbsp; &nbsp; 
    <a href="tel:+31614243450"><i class='x-icon x-icon-phone-square'></i>  Call me +31 6 14 24 34 50</a>
    
    #788542

    Christian
    Moderator

    Glad you’ve sorted it out. For more in depth setup, you might want to contact our trusted partners who caters X setup and customization needs. Please see https://theme.co/x/member/custom-development/.

    #791334

    Studio57
    Participant

    It doesn’t look so nice on mobile, on a smaller screen the phone and email in the Topbar gets an outline. Is there something I can do about that?

    #791872

    John Ezra
    Member

    Hi there,

    Thanks for updating the thread! Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #799724

    Studio57
    Participant
    This reply has been marked as private.
    #799893

    Thai
    Moderator

    Hi There,

    Please try adding the following CSS under Customize > Custom > CSS:

    @media (max-width: 480px){
        .x-topbar .p-info a {
            display: block;
        }
    }

    Hope it helps 🙂

    #800056

    Studio57
    Participant

    Thank you!

    Also: I tried a different Stack (Renew instead of Ethos) and now the line is gone.

    While we’re talking about the Topbar Content — is it possible to change the rollover color of the social icons and change the shape to square from the Renew Stack?

    #800814

    Rue Nel
    Moderator

    Hello Again,

    To change the rollover color of the social icons and change the shape to square, please add the following css code in the customizer, Appearance > Customize > Custom > CSS

    .x-social-global a {
        background-color: rgba(255,255,255,0.5);
        border-radius: 0px;
    }
    
    .x-social-global a:hover.facebook {
        background-color: red;
        color: white;
    }
    
    .x-social-global a:hover.linkedin {
        background-color: green;
        color: white;
    }

    We would loved to know if this has work for you. Thank you.

    #808159

    Studio57
    Participant

    Thanks! 😀

    #808188

    Nico
    Moderator

    You’re most welcome.

    Feel free to ask us again.

    Have a great day! 🙂