Jump to content

Archived

This topic is now archived and is closed to further replies.

mmunger

Putting a small icon after content in posts

Recommended Posts

mmunger+    0
mmunger

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
James B    436
James B

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.

  • Like 1

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
mmunger+    0
mmunger

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
Danny    1,327
Danny

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/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×