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.
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
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.
Hi,
Ensure that youre adding the shortcode in the right place, that
s the Text editor and not the Visual.
Best regards,
John Torvik
Hi John,
I still get this: http://i.imgur.com/SAlgwvP.png
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
Thank you Yigit!
Works perfectly
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