Community Forums › Forums › Archived Forums › Design Tips and Tricks › Is there a way to have the same text appear at the bottom of a post.
- This topic has 5 replies, 4 voices, and was last updated 6 years, 8 months ago by Erika.
-
AuthorPosts
-
August 23, 2017 at 3:23 am #210663tokyoprogressiveMember
I am using Magazine Pro and every post has the same information appearing at the bottom. Please see, for example, this post:
The recurring text and image is the horizontal line and "Please support our work" all the way to the bottom (Facebook etc. icons are not part of this).
Until now, the only way I can do this is to copy and paste from an existing post. Would love to have it appear automatically or create a template post. I tried that, by creating a post with a date far into the future, then changing the name. But when I try that, the original post is no longer available.
Thanks.
http://tokyoprogressive.org/okinawa-still-trapped-grip-us-militarism-tim-shorrockAugust 23, 2017 at 3:36 am #210665Brad DaltonParticipantYou can add the text into the after entry widget
or
Hook it in using PHP code in functions.php.
add_action( 'genesis_entry_footer', 'post_text', 5 ); function post_text() { if ( is_singular( 'post' ) ) { echo'your text'; } }
August 23, 2017 at 5:27 am #210666tokyoprogressiveMemberThank you. But I am not sure.
In my wight area I do not see that particular widget. Do I have to download it from somewhere?
The other idea, the hook, seem only for text but I want to include my graphic, so I guess the answer entry is best?
An important thing I just thought of:
Will adding either of these, by the way, screw me up in that all my previous entries over the last year have the text and graphic added by hand. Will adding the hot or after entry options mean that I now have duplicates, or does it only affect posts going forward?
Thank you!
August 23, 2017 at 6:51 am #210672Victor FontModeratorUnless your version of Magazine Pro has been customized, the delivered version definitely supports the after entry widget area. It is activated at line 124 in functions.php.
Yes, adding text to the after entry widget area will display it on all posts regardless of age. I haven't done this specifically, but in theory you can wrap the widget display in a WordPress conditional where you can display it only if a post has been published beyond a certain data or has an id greater than x. https://codex.wordpress.org/Conditional_Tags
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?August 23, 2017 at 7:57 am #210677tokyoprogressiveMemberThanks. But where can I find this functions.php? I am hosted on Studio Press and I know they have removed the WordPress editor system wide for security reasons. I am not sure this is the same kind of thing. (I was asking them about another issue-changing the font size in tag clouds). They said, "We encourage all users to edit PHP through SFTP, as you can use SFTP and a text editor to achieve the same editing goals in a much safer fashion. We also highly encourage backing up or making a copy of any files that you edit so you can easily undo changes should issues occur."
I am presently waiting for an explanation on how to do the above for the tag clouds as I have no experience working with ftp for the last 10 years.
Once I have understood a bit more, I might attempt. But then I have to consider if it isn't less work just to add the extra text each time.
paul
August 23, 2017 at 11:53 am #210684ErikaParticipantYou can also just use this CSS snippet and add other properties to it accordingly:
.single .entry-content::after {
content: "Your message here";
}This will make your message appear below share buttons in most cases.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.