If you could provide me the function it will be great, I want to add it above the “Author Bio” portion.
Hi Saswata,
You seem to have other customization on post page. The following should work by default by adding it on your child theme functions.php file:
add_action( "x_after_the_content_end", "add_post_shortcode" );
function add_post_shortcode() {
if(is_singular( 'post' )){
echo do_shortcode('[callout type="left" title="Engaging Title Here" message="Add in your content here. Make sure that it is something super duper awesome to get people to click on the button below!" button_text="Click Me!" href="#example"]');
}
}
If in case that didn’t work, please visit any custom code you have added. There might be conflict with that code.
Its work, however is it possible to open that button link in a new tab, I tried to add target="_blank" but it won’t work
Hi Saswata,
You are almost there. Here’s the shortcode guide: http://demo.theme.co/integrity-1/shortcodes/callout/
It should be target="blank" without underscore.
Cheers!
is it possible to make the link nofollow?
Hi Saswata,
Unfortunately, that option is not available. Possible with customization, but that would be outside the scope of our support. Thank you.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.