Results 1 to 2 of 2

Thread: Removing Links from BLog Post images on home page

  1. #1
    Thread Starter
    daylightmedia's Avatar
    Join Date
    Dec 2012
    Location
    Canada
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Removing Links from BLog Post images on home page

    hi,

    i am trying to modify my vantage site so that all of the blog post images don't have links to the separate posts on the homepg and other category pages- i found the code in the 'views.php' file but i was wondering if anyone knew how to modify the echo html part so that it simply outputs the thumbnail image without adding a link to the post page aorund the image? I want people to click on the 'more' link and i have way too many links on each pg so im trying to remove the image links as its not necessary to have 4 links for eachpost on the home pg etc. If anyone knows how to modify the code below to simply output the images wihtout the link tags around the image please let me know

    public function blog_featured_image() {
    if ( has_post_thumbnail() ) {
    echo html('a', array(
    'href' => get_permalink(),
    'title' => the_title_attribute(array('echo'=>0)),
    ), get_the_post_thumbnail( get_the_ID(), array( 420, 150 ), array( 'class' => 'alignleft' ) ) );
    }
    }
    }

  2. #2
    Veteran joes's Avatar
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    875
    Thanks
    12
    Thanked 358 Times in 261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: May 7th, 2013, 12:06 PM
  2. Query Post for jobseeker blog home page
    By samonja in forum WordPress General Discussion
    Replies: 0
    Last Post: January 24th, 2013, 05:02 PM
  3. [SOLVED] Menu Links - Home, Homepage, and Blog
    By lucabrasi in forum Help Using ClassiPress
    Replies: 6
    Last Post: January 26th, 2011, 04:46 PM
  4. Simple question : How can i increase blog post number on my home page ?
    By kk8ete in forum ClassiPress General Discussion
    Replies: 2
    Last Post: November 21st, 2010, 04:24 PM