Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #319806

    How do I add text on top and bottom of the site OUTSIDE of site container? Here’s an example of how I want that outside text it to look: http://www.liveshopdinenorthbrook.com/

    #319807

    Hey goforyourdreams!

    Please refer to my post here – https://kriesi.at/support/topic/add-image-to-header-in-upper-right-near-social-icons/#post-310712
    You can edit the file in Appearance > Editor
    Edit: You can also go to Enfold theme options > Header Layout > Extra Elements and add your text there. Then we can provide you custom CSS code to make header meta section transparent

    Regards,
    Yigit

    • This reply was modified 10 years, 3 months ago by Yigit.
    #319855

    The Extra Elements option is very limiting, it doesn’t work with the kind of stuff I want to add.

    Is there a way to do it as a function? I’d rather not edit the theme files – don’t want to have them overwritten with the next update!

    Here’s my function:

    function header_top_text() {
    ?>
    <div class="header-top-text">
    my text goes here
    </div>
    <?php
    }

    Now how do I activate it? I tried the following:
    add_action('ava_main_header', 'header_top_text');
    but it gets stuck inside the header, even if I use the custom CSS to re-position it won’t go outside the header.

    #320636

    Anyone? When I create a function with custom content in functions.php, what code do I use to activate it? I want the code in that function to be added to the very top of the site (before the site container)…

    #320900

    Hey!

    Please try this:

    function header_top_text() {
    ?>
    <div class="header-top-text">
    my text goes here
    </div>
    <?php
    }
    
    add_action('avia_meta_header', 'header_top_text');

    Then use this on Quick CSS or custom.css to adjust the position of the container:

    .header-top-text {
    position: absolute;
    right: -5%;
    }

    Please provide a screenshot or mockup.

    Best regards,
    Ismael

    #321251
    This reply has been marked as private.
    #322604

    Hey!

    Please follow Ismaels instructions here: https://kriesi.at/support/topic/adding-text-on-top-and-bottom-outside-of-site-container/#post-320900 and post a link to your website – we’ll investigate it with the developer tools.

    Cheers!
    Peter

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