Tagged: 

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

    Hi,
    I have a small adjustment to make to the header, I have tried several solutions but without success.
    My customer would like a “make a donation” button added the header. I have used the following php in my child theme:

    `add_action( ‘ava_main_header’, ‘enfold_customization_add_to_header’ );
    function enfold_customization_add_to_header() {
    echo do_shortcode(“[av_button label='Make a Donation' link='manually,http://www.google.com' link_target='' size='small' position='right' icon_select='no' icon='ue800' font='entypo-fontello' color='theme-color' custom_bg='#444444' custom_font='#ffffff' custom_class='']“);
    }

    I would like to adjust the styling of the button – background colour, font and position (so that it aligns on the right with the social icons and moves down 20px)

    It would be great if you could advise which elements I need to target.

    Fiona

    #582956

    Hi, I know you guys are busy but I would really like to resolve this by the end of the day if possible, the site is due to go live this evening to coincide with a conference tomorrow.

    #582984

    Problem solved with the following css targeting ‘avia-button’:

    .avia-button
    {
    color: red !important;
    font-family: akbarplain !important;
    position: relative;
    top: 40px;
    right: 47%;
    }

    Another method I tried which might be of interest to other users, but not quite right for my website, is referenced here and uses a menu item as a button:
    https://kriesi.at/support/topic/removing-ahover-color-over-search-icon-stylizing-individual-menu-elements/

    Fi

    • This reply was modified 8 years, 10 months ago by Fionadee.
    #582988

    Sorry guys, afraid I spoke too soon, although the button looks the way I want it to, it has lost the link.
    I am not a php user, can you help me restore the link please?

    Fi

    #583489

    Hey!

    it does seem to work fine on my end. Only left side is not clickable due to z-index error. You can add following code to Quick CSS to fix that issue

    #header_main .avia-button-wrap, #header_main .avia-button-wrap * {
        z-index: 9999!important;
    }

    Best regards,
    Yigit

    #583491

    You’re a star – thank you!
    All working now.

    #583493

    Hey!

    You are welcome :)
    Let us know if you have any other questions or issues

    Cheers!
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Custom button in header’ is closed to new replies.