Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #354586

    So basically I want to place this button:
    [av_button label='Find out more' link='manually,http://' link_target='' size='small' position='center' icon_select='no' icon='ue800' font='entypo-fontello' color='theme-color' custom_bg='#444444' custom_font='#ffffff']

    Within a promo box, but I don’t want the promo box to have that built-in button on the right. I just want the pretty borders of the promo box basically, so to this end I disabled the button in the av_promobox shortcode. However, this doesn’t just the disable the button on the right, it seems to disable the rendering of all buttons within that promo box. So in the following code, my “Find out more” button would never appear.

    [av_promobox button='no' label='' link='manually,http://' link_target='' color='theme-color' custom_bg='#444444' custom_font='#ffffff' size='medium' icon_select='no' icon='ue800' font='entypo-fontello']
    [av_button label='Find out more' link='manually,http://' link_target='' size='small' position='center' icon_select='no' icon='ue800' font='entypo-fontello' color='theme-color' custom_bg='#444444' custom_font='#ffffff']
    [/av_promobox]

    How can I get around this? I know I could probably copy the raw code when it renders in the browser, but I’d prefer to use shortcodes so I don’t start having too much hard-coded HTML.

    #355343

    Hi champlainconted!

    Let the promobox button display and then add this to your custom CSS to hide it.

    .av_promobox > .avia-button-wrap {
        display: none !important;
    }

    Regards,
    Elliott

    #355587

    Thanks, this pointed me in the right direction. I had to tweak a few more things though:

    .av_promobox .avia-button{
    	position: relative !important;
    	right: 0px;
    }
    
    .avia-promocontent{
    	margin-right: 0px;
    }
    
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Button shortcodes don't render when placed in a promo box that has button='no'’ is closed to new replies.