Show Title from Header-Picture on MouseOver

  • kladtiator


    The questions are

    * where is the title of an image?

    * where is the alt-tag of an image?



    And after this:

    what is the nessecary sourcecode of a page/post which shows an image with its MouseOver-Text in the header area whre the background-image exists?

    Than we should have to look for the place where it is produced.


    Kenneth John Odle


    Well, I was thinking that the new function definition would look something like this:

    $header_img = get_the_post_thumbnail( $post_id, 'post-thumbnail' );
    $header_img = explode( '" class="', $header_img);
    $header_img = $header_img[0];
    $header_img = explode( 'src="', $header_img);
    $header_img = explode( 'title="', $header_img);
    $header_img = $header_img[1]; // only the url

    But I don’t know enough PHP to figure out how to redefine this in a child theme. (Josh….?)



    Did you try inserting title text when you set the image as featured?

    Like when you upload the image? You have the opportunity to add title text and a description. Did you try adding it to these boxes?

    What plugin are you using to display the different header images?

Viewing 4 posts - 11 through 14 (of 14 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.
Graphene Themes Forum