Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Joe Hall

    (@redbmedia)

    ok, for some reason, I can’t get the code to look right above. Please bare with me and ask questions if needed.

    apostrophe and backtick are not the same.
    Backtick is most likely under the tilde ~ (left top)

    Thread Starter Joe Hall

    (@redbmedia)

    Thank you Moshu for the help with the backticks, now, I will re-post my original question:

    I want to edit the code that inserts attachments into a post to include a “rel” attribute to image thumbnail links. In other words. I want my image thumbnail links to automatically include a “rel” attribute. So that…

    <a href='https://www.example.com/wp-content/uploads/2007/06/example.JPG' title='example.JPG'><img src='https://www.example.com/wp-content/uploads/2007/06/example.thumbnail.JPG' alt='example.JPG' /></a>

    Looks like:

    <a rel='example' href='https://www.example.com/wp-content/uploads/2007/06/example.JPG' title='example.JPG'><img src='https://www.example.com/wp-content/uploads/2007/06/example.thumbnail.JPG' alt='example.JPG' /></a>

    I want the rel attribute to be added to the code automatically so that I don’t have to go back and edit the html everytime I embed a picture. Anyone have any idea how this can be done?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Automatically add “rel” attribute to upload code?’ is closed to new replies.