Community Forums › Forums › Archived Forums › Design Tips and Tricks › Blissful meta data and signature issues
- This topic has 12 replies, 3 voices, and was last updated 10 years, 1 month ago by krystyn.
-
AuthorPosts
-
July 24, 2013 at 11:21 am #52264krystynParticipant
My test site is here. I've added a signature using the Genesis Simple Hooks plugin, using the genesis_after_post_content Hook. However, it looks funny since it comes after the post meta data. I'm not sure how to move the meta data or move the signature above it, so I would really appreciate suggestions
http://69.195.124.59/~domestq0/July 24, 2013 at 12:59 pm #52284Nile FloresMemberWhile I am not using a signature, I am using an ad right after the post, but before the post meta.
The area is a widget... so you would either have to register a widget and put your signature in, or alter the code below to suit your needs.
/** Add after post ad section */ add_action( 'genesis_after_post_content', 'blissful_after_post_signature', 9 ); function blissful_after_post_signature() { if ( is_single() ) { echo '<div class="after-post-signature">'; echo '</div><!-- end .after-post-signature -->'; } }
I help people rock out their sites! – Blondish.net
July 24, 2013 at 1:03 pm #52286krystynParticipantIs that what you used to register your widget? I have to go back and remember how to do that.
Also, what is the 9 for at the end of the first line?
With the code you have there, it looks like it would have the same impact as using the simple hooks that I did? I did it right in the genesis_after_post_content as well.
July 24, 2013 at 1:16 pm #52288Nile FloresMemberOops... I went and modified the code... no need to register a widget.... 🙂 Sorry... when I did that, I should have edited the text too.
I help people rock out their sites! – Blondish.net
July 24, 2013 at 1:21 pm #52290krystynParticipantOkay, php is my nemesis....where do I put the actual image for the signature code? Between the two echo lines?
July 24, 2013 at 1:22 pm #52292Nile FloresMemberThe number 9 gives importance to it and puts it above the post meta.
The code goes in your child theme's functions.php
I help people rock out their sites! – Blondish.net
July 24, 2013 at 1:28 pm #52295krystynParticipantNo. Sorry, where do I actually put the link to the image that I want to be the signature? Within that code? I know the code itself goes in functions.php.
Sorry....it's been a long day.
This is what I currently have in the simple hook:
<?php if (is_single()) { ?> <img src="http://69.195.124.59/~domestq0/wp-content/uploads/2013/07/nicole.png" /></a> <?php } ?>
July 24, 2013 at 2:04 pm #52309krystynParticipantUnfortunately, it still goes beneath the social sharing and the linkwithin, but hopefully, there is another fix for that?
For anybody looking:
/** Add after post ad section */ add_action( 'genesis_after_post_content', 'blissful_after_post_signature', 9 ); function blissful_after_post_signature() { if ( is_single() ) { echo '<div class="after-post-signature">'; echo '<p><img src="URL OF IMAGE" />'; '</p>'; echo '</div><!-- end .after-post-signature -->'; } }
July 24, 2013 at 2:10 pm #52310Debra ScottMemberchange the 9 to an 8 or 7 or whatever puts it where you want.
need help with your business or personal website? Contact me at Fat Cat Designs
July 24, 2013 at 2:12 pm #52311krystynParticipantThanks! I only tried bigger numbers, not smaller!
July 24, 2013 at 2:16 pm #52316krystynParticipantHmmm...tried 1-9 and it still won't move it. It's probably because of something in the plugins, but I hate to edit that because it often gets written-over in updates.
July 24, 2013 at 3:17 pm #52327Nile FloresMemberAre your social sharing icons a plugin?
You would have to go and edit the plugin's files. Not a good idea especially if you are using plugins that are constantly being updated.
You would have to put them at a lower number or use a manual method with a hook. I don't use a social share plugin anymore and have buttons in mine using hooks and have them placed just under the post meta. ( Example : look at my single posts on blondish.net )
If you are using Digg Digg, you can do this with the manual option... again, you would put the code together and use a hook.
LinkWithin... See if they have a manual code option. If they do not.... try YARRP ( Yet Another Related Post Plugin)... there is a manual option described in that plugin.
I help people rock out their sites! – Blondish.net
March 17, 2014 at 6:27 pm #95395krystynParticipant@blondishnet can you point me in the right direction for putting the social buttons together? I know where to grab the code for the buttons, but I'm not sure how to put it together.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.