0

I want to give my photos a special style such as this link "CSS3 Hover Effects" For this, I must add a div after any image link in any post What should i do For this style ? I am using Hueman Theme And local host . Thanks

closed as unclear what you're asking by birgire, Howdy_McGee, Nicolai, kaiser Mar 31 '16 at 1:10

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

1

Your question is a little light on detail of what you want to happen precisely.

In general anything in WordPress content is usually treated as such. It's not very friendly to being mixed with code, although many solutions try (often with poor results).

The basic approach would be to use the_content filter to process post content on display and insert modifications as necessary.

Other options I can think of would be inserting changes when post is save or customizing markup of image being inserted into content (image_send_to_editor filter).

  • Thanks image_send_to_editor filter was suggested to me by other friends but i dont know to use this filter is a tutorial for this ? – Mehrdadam Mar 25 '16 at 20:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.