WordPress.org

Ready to get started?Download WordPress

Forums

PHP Image Link in template (2 posts)

  1. SerenadeWebDesign
    Member
    Posted 1 year ago #

    I'm working with a template (http://www.lastkeyrealty.com/wordpress/portfolio-view/puerta-coralina/) and there's a certain portion of the portfolio page on the right side that is text input only. The "click here" link on the right side I want to be an image instead of text. Here is the php code, is it a simple fix to change this to an image link instead of a text link?

    if( !empty($portfolioURL) ) {
    echo '

  2. ';
    echo '<strong class="portfolio-meta-key">' . __('Rates & Additional Information:', 'framework') . '';
    echo "" . __('Click here', 'framework') . "";
    echo '
  3. ';
    }

  • michael.mariart
    Member
    Posted 1 year ago #

    Very easy. Just replace this line:

    echo "<a href='$portfolioURL'>" . __('Click here', 'framework') . "</a>";

    With (this is an example only, you will need to add your own images details):

    echo "<a href='$portfolioURL'><img src='clickhere.jpg' width='60' height='30' alt='Click Here' /></a>";

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.