Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #801160

    Hi guys, I was wondering if it’s possible to add a button to a specific page’s title. Like ‘Click here for more’ button next to the title. Not under it or above it, inline.

    #801163

    Hey FlatText,

    Yes, that should be possible however to make sure that we are on the same page, can you please elaborate a bit on the changes you would like to make and post a screenshot showing the changes? You can upload your screenshots on imgur.com or Dropbox public folder and post the links here :)

    Best regards,
    Yigit

    #801166

    Hi Yigit,

    Like this: http://i.imgur.com/BkAHogo.png
    Button with the Page header

    I tried adding the av_button shortcode to the title but the button didn’t appear, just the shortcode in text.

    #801316

    Hi,

    Ensure that youre adding the shortcode in the right place, thats the Text editor and not the Visual.

    Best regards,
    John Torvik

    #801523

    Hi John,

    I still get this: http://i.imgur.com/SAlgwvP.png

    #801568

    Hi,

    Please add following code to Functions.php file in Appearance > Editor

    
    add_filter('avf_title_args', 'av_title_bar_button', 10, 2);
    function av_title_bar_button($args,$id)
    {
        if (is_page('59'))
        {
            $args['title'] = get_the_title($id);
            $args['title'] .= do_shortcode( "[YOUR SHORTCODE GOES HERE]" );
        }
    
        return $args;
    }

    Then change page ID and insert your shortcode between double quotes where it is indicated

    Best regards,
    Yigit

    #801581

    Thank you Yigit!

    Works perfectly

    #801588

    Hey!

    You are welcome! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Add button to title header (Title Bar)’ is closed to new replies.