adding an attribute to image in css file

5 replies
Hi Warriors,

I'm having some trouble with modifying the css file on my wordpress blog. i need to add a title attribute to a few of my images and am not sure how to implement it.

Thanks for any help!

Rebecca
#adding #attribute #css #file #image
  • Profile picture of the author ppc4profit
    I may be misunderstanding you... but the title attribute is not set by the .css file as this deals with the style of the image only.

    The title is set in Wordpress in the wysiwyg editor. Click on the image and you can set various parameters there.
    Signature

    Checkout Our Fully Responsive Wordpress Templates
    Mobile Enable Your Wordpress Website Today - With This Plugin
    Online Marketing - We Help With PPC, SMS and QR Code Campaigns

    {{ DiscussionBoard.errors[918283].message }}
  • Thanks... I tried clicking on "editor" under "appearance" in my wordpress control panel and this message comes up:

    The requested theme does not exist.

    Any way around this?

    Thanks,
    Rebecca
    {{ DiscussionBoard.errors[924305].message }}
  • Profile picture of the author The Pension Guy
    No, you do NOT edit the template files or CSS file(s) to add an attribute to the images in your posts.

    You add the attributes in the html view of your posts.

    However, if you are talking about images that are part of your theme (not clear at all from your post!) then edit the template files in your theme with notepad or some similar text ediotr and upload them via ftp. Attributes like title are part of the html code - they are not in the CSS file.
    Signature

    {{ DiscussionBoard.errors[924335].message }}
    • Profile picture of the author ppc4profit
      RebeccaLynn,

      You are going to have to provide more information for us to help you.

      What is the image you are concerned with
      - is it an image in a post
      - is it an image in your template

      The process to add an attribute is different.
      Signature

      Checkout Our Fully Responsive Wordpress Templates
      Mobile Enable Your Wordpress Website Today - With This Plugin
      Online Marketing - We Help With PPC, SMS and QR Code Campaigns

      {{ DiscussionBoard.errors[925717].message }}
  • Profile picture of the author RedMatrix
    This thread belongs in the correct forum. You'd get a better response, plus maybe learn something reading others' problems that have been resolved. :-*
    Signature

    ~Dave

    {{ DiscussionBoard.errors[925894].message }}

Trending Topics