-
AuthorPosts
-
May 29, 2017 at 5:29 pm #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.
May 29, 2017 at 5:35 pm #801163Hey 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,
YigitMay 29, 2017 at 5:41 pm #801166Hi Yigit,
Like this: http://i.imgur.com/BkAHogo.png
Button with the Page headerI tried adding the av_button shortcode to the title but the button didn’t appear, just the shortcode in text.
May 30, 2017 at 12:46 am #801316Hi,
Ensure that you
re adding the shortcode in the right place, thats the Text editor and not the Visual.Best regards,
John TorvikMay 30, 2017 at 2:14 pm #801523Hi John,
I still get this: http://i.imgur.com/SAlgwvP.png
May 30, 2017 at 4:28 pm #801568Hi,
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,
YigitMay 30, 2017 at 4:54 pm #801581Thank you Yigit!
Works perfectly
May 30, 2017 at 5:18 pm #801588Hey!
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 -
AuthorPosts
- The topic ‘Add button to title header (Title Bar)’ is closed to new replies.
