- This topic has 23 replies, 4 voices, and was last updated 1 year, 11 months ago by Fernando.
-
AuthorPosts
-
May 4, 2022 at 5:49 am #2208820Tom
Is there any way to automatically insert copy at the top and bottom of all posts?
I tried using a hook, but can’t seem to get it to format correctly (like the post) and land in the correct location (within the copy, at top and bottom.)
site is https://travelpast50.com.
Thanks.
May 4, 2022 at 6:02 am #2208843DavidStaffCustomer SupportHi there,
it is – but we need to consider where does Copy start and stop.
Lets first look at after the content … if i look at a single post i see the posts end with a Blue Box, Disclaimer, CovertKit form and Social Icons. Do you want to hook in after that or before that ?May 4, 2022 at 6:37 am #2208872TomI’d replace the blue box at the end with the text I want to insert. So, the last thing in the body of the post would be the text I want to insert.
At the top, I’d want the text to be, in essence, the first sentence of the post.
I’d like to be able to format the text, i.e. put it in a blue box and italicize.
What I’m trying to do is automate placement of disclaimer text and a couple of other things in all posts.
Thanks.
May 4, 2022 at 6:42 am #2208880DavidStaffCustomer SupportSo how are the ConvertKit and Social Icons added to the page ? Is that automatic ?
If it is can they be added using Hooks and Shortcodes ?May 4, 2022 at 7:08 am #2208902Tomboth via plugins.
Convert Kit has it’ own. The social icons are from Grow Social Pro by Mediavine.
May 4, 2022 at 7:15 am #2208905DavidStaffCustomer SupportDo those plugins have an option to insert using a shortcode ?
As ( i assume ) they are currently usingthe_content
filter hook to insert their code, which makes it impossible to use an ( action ) hook to insert content before them.May 4, 2022 at 7:29 am #2208919TomI’ll have to check with ConvertKit. It seems you can use their shortcode, according to the settings in their plugin, but seems to suggest using it in addition to the app inserting the form at the end.
As for mediavine, don’t see it in their plugin. I will ask their support, too.
So I understand, if we could do both via shortcode, then we could do the text insert?
Thanks.
May 4, 2022 at 7:46 am #2208942DavidStaffCustomer SupportThats correct, as then you could use a Hook to add your Blue Box text, followed by the ConvertKit Shortcode and then the Social Sharing shortcode 🙂
For the top of the Post, we have a similar challenge.
For example if you were to use thegenerate_after_entry_header
hook you could place content after the Title/Post Meta.
Anything below that is in the content so we would need to use a filter to insert content. Let me know.May 4, 2022 at 9:27 am #2209304TomGot an answer from convertkit. I can insert a shortcode to display the form.
As a hook?
Where do I put it?
I want it to be the last thing at the bottom of posts.
May 4, 2022 at 9:32 am #2209309Tomgenerate_after_content seems to work.
That’s how I’m doing it as of now.
May 4, 2022 at 9:37 am #2209316TomUsing the plugin settings, I’ve stopped showing the social share buttons at the bottom. Will that do the trick, at least for the bottom?
May 4, 2022 at 10:02 am #2209344YingStaffCustomer SupportHi Tom,
I want it to be the last thing at the bottom of posts.
Give
generate_before_comments_container
hook a try.May 4, 2022 at 12:19 pm #2209475TomBoth generate_before_comments_header and generate_after_content seem to put the form in the same place. Is there any benefit to one or the other as far as inserting the text I want?
May 4, 2022 at 12:53 pm #2209514YingStaffCustomer Supportgenerate_before_comments_container
This hook should insert the content after the social share icon. Isn’t that what you want?
Let me know if I miss anything.
May 4, 2022 at 1:06 pm #2209524TomOk. The Convertkit form is in the right place.
Now I want to place this copy
Some posts on this site contain affiliate links, meaning if you buy something through one of those links, Travel Past 50 may earn a small commission.
above that, in the same format as the normal copy. How do I make it the same width? If I put it in like this, it displays full container width.
-
AuthorPosts
- You must be logged in to reply to this topic.