WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Add image to left of page titles with TwentyEleven child theme (5 posts)

  1. haagsekak
    Member
    Posted 1 year ago #

    I am trying to add an image to the left of a page title on the page itself. Also I want to be able to have different images for different pages. The image is in addition to the page title.

    Example:

    [IMAGE of any appropriate size] . . . Page Title

    I am not looking for thumbnails, just a basic JPEG that is located in xhttp://www.blogname.com/images/picture.jpg

    I have looked all over and most posts are more then 2 years old and outdated.

    Anybody have any ideas?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Why not add the images using CSS and the classes generated on the <body> tag?

  3. haagsekak
    Member
    Posted 1 year ago #

    I am still learning PHP. Could you suggest what the code should be and which file do I edit? page.php in the child theme?
    And where would I add the CSS at the end of the file?
    Thank you for your help and time.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    It has nothing to do with PHP. It's pure CSS.

  5. haagsekak
    Member
    Posted 1 year ago #

    Still learning how to go about with CSS. Would you be able to provide an example of how the code would like?

Topic Closed

This topic has been closed to new replies.

About this Topic