• 0
Sign in to follow this  
Followers 0

Putting a small icon after content in posts

Question

Posted · Report post

Hi guys,

 

I am trying to figure out how to add something cute to my blog: a small icon (as an image) right after the dot of the last paragraph in every post. Just like magazines do, in order to mark the end of an article's content.

 

My first guess would be to put in a hook in the functions.php file of my base theme, but... which?

 

I'm afraid that if I use pagelines_loop_after_post_content it will go much below the last paragraph, not at the end of it.

 

Help?

 

I use Framework 2.4.4 on www.fcbayerncentral.com

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

Posted · Report post

Hi there, if you install the actionmap plugin - https://www.dropbox.com/s/muyy8k5xcjvbvlo/Framework-included-content.zip and activate on your site this will show you on the page exactly where each hook appears. So go to the single post page, activate actionmap once installed via the top left of the wp admin bar (there's a button for actionmap that will appear) and it will show you all the hooks on that page in position relevant to your content. Then you can pick the closest one and insert the html for the image into there.

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Cool! Thank you!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hmmm. I tested it on my personal site and I get errors:

 

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mmunger/munger.ca/wp-content/plugins/pagelines-action-map/pagelines-action-map.php on line 61

 

Warning: Invalid argument supplied for foreach() in /home/mmunger/munger.ca/wp-content/plugins/pagelines-action-map/pagelines-action-map.php on line 63

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I have to say I have never seen any blog or news site add a small icon or image after the last sentence. However, if the hook isn't doing it the way you would like, you would probably be best using custom CSS and one of the pseudo classes.

 

http://css-tricks.com/pseudo-class-selectors/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0