WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Trying to make portfolio title point to URL, not single-portfolio page (3 posts)

  1. Kayden
    Member
    Posted 1 year ago #

    So here's my page: http://tidclients.com/nestle/other-resources/

    Right now, the thumbnails for each portfolio item point to the correct URL but the titles of each port item point to this single-portfolio page that I have no use for since these aren't actually portfolio items, they're external sites. I just liked how this page laid out the links.

    Where and in which file do I change the php so that the titles of the items link to the same URL as the thumbnail?

    I have some limited expereince with PHP and I know HTML and CSS very well.
    Also have full access to the FTP through filezilla and text wrangler.

    thanks in advance!

  2. Kayden
    Member
    Posted 1 year ago #

    Also, I'm using the "Modernize" theme by Good Layers

  3. Kayden
    Member
    Posted 1 year ago #

    Nevermind - figured it out :)

    in include/plugin/page-item.php
    I found this line:
    if( find_xml_value($item_xml, "show-title") == "Yes" ){
    echo '<h2 class="portfolio-thumbnail-title port-title-color gdl-title">' . get_the_title() . '</h2>';
    }

    and changed it to this:
    if( find_xml_value($item_xml, "show-title") == "Yes" ){
    $website = get_post_meta( $post->ID, 'post-option-website-url', true);
    echo '<h2 class="portfolio-thumbnail-title port-title-color gdl-title">' . get_the_title() . '</h2>';
    }

    and it worked like a charm :)
    -Kayden

Topic Closed

This topic has been closed to new replies.

About this Topic