[Resolved] image link

Home Forums Support [Resolved] image link

Home Forums Support image link

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1128431
    Erik

    Hi Tom,

    Can you help me to add a image-url on the header-image in this hook:

    <?php if (is_archive() || is_single() || is_search() || is_404() ) : ?>
                    <div class="page-header-image grid-container grid-parent generate-page-header">
    <img width="1100" height="400" alt="" class="attachment-full" src="xxxxxx">
    </div>
    <?php endif; ?>
    #1128463
    Leo
    Staff
    Customer Support

    Hi there,

    Sorry not quite sure if I understand.

    What are you trying to achieve?

    #1128546
    Erik

    Hi Leo, I would like to add an image link to the image of the page header for the pages where I use this code in GP Hooks.

    <?php if (is_archive() || is_single() || is_search() || is_404() ) : ?>
                    <div class="page-header-image grid-container grid-parent generate-page-header">
    <img width="1100" height="400" alt="" class="attachment-full" src="xxxxxx.jpg">
    </div>
    <?php endif; ?>
    #1128620
    David
    Staff
    Customer Support

    Hi there,

    i am not sure if i fully understand but if you want to make the image link to another URL then try wrap the tag in an anchor so this:

    <img width="1100" height="400" alt="" class="attachment-full" src="xxxxxx.jpg">

    becomes:

    <a href="add_the_url_here">
        <img width="1100" height="400" alt="" class="attachment-full" src="xxxxxx.jpg">
    </a>
    #1128713
    Erik

    thanks, that’s working…

    #1128718
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.