WordPress.org

Ready to get started?Download WordPress

Forums

How to remove linked intro text for post on homepage (11 posts)

  1. Tee
    Member
    Posted 4 years ago #

    Hey Folks.

    Im sorry for bombarding you all with these questions... check it out; http://www.adidas-talk.com notice the first post titled: MiLK China x The Satorialist x adidas Originals “Five-Two-3″ Campaign

    The intro text below that when you hover over it... it will display as a link which is not what I want... so how can I remove that... I had a look in Style.CSS and here's what i found.

    /********************************************
    Latest stories on the left
    ********************************************/
    .latest_stories h1 {
    	font-size: 2em;
    	letter-spacing: -1px;
    	color: #f5006e;
    }
    
    .latest_stories h2 {
    	font-size: 1.8em;
    	margin: 0 0 10px 0;
    }
    .latest_stories h2 a {color: #000}
    .latest_stories h2 a:hover {text-decoration:underline}
    
    .latest_stories .last_date {
    	display: block;
    	line-height: 2.2em;
    	font-family: georgia;
    	font-style: italic;
    	color: #666;
    	border-bottom: 1px dotted #ddd;
    }
    
    .focus {
    	margin: 10px 0 10px 0;
    }
    
    .focus .thumb {
    	float: left;
    	margin-right: 10px;
    }
    .focus .thumb img {
    	overflow: hidden;
    }
    
    <strong>.focus p {
    	font-size: 1.2em;
    	line-height: 1.2em;
    }
    .focus p a {color:#333}
    .focus p a:hover {color:#333}</strong>
    
    .recently {
    	padding: 10px 0 10px 0;
    	border-top: 1px dashed #aaa;
    }
    
    .storylist {
    	display: block;
    	padding: 6px 0 0 0;
    	border-top: 1px dashed #aaa;
    }
    
    .storylist li {
    	display: block;
    	padding: 4px 0 0 0;
    }
    
    .storylist a {
    	color: #222;
    	font-weight: bold;
    	line-height: 1.3em;
    }
    
    .storylist a:hover {
    	text-decoration: underline;
    }
    
    a.see_more {
    	font-size: 0.9em;
    	background: url(img/sm_arrow.png) no-repeat right center;
    	padding-right: 9px;
    	text-transform: uppercase;
    	color: #1d6b9d;
    }

    I think it could be the area where I highlighted in bold that I need to tweak no?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    It's in the theme template - presumably index.php. Looks like it's placing the_excerpt() inside a permalink. Maybe something like:

    <p><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_excerpt(); ?></a></p>

    in which case, you could just amend that to:

    <p><?php the_excerpt(); ?></p>

  3. Tee
    Member
    Posted 4 years ago #

    Hey Esmi,

    Thanks!

    I see what you mean!

    Here's a repetitive code that Im seeing all over the home.php

    <p>" title="<?php the_title(); ?>"><?php print do_excerpt(get_the_excerpt(), $options['snippet_level2']); ?></p>

    Here's my home.php file http://www.filedropper.com/home_4 please let me know what I need to remove...?

    Thanks again!

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    First make a backup copy of home.php. Then try editing the original file and changing:

    <p>" title="<?php the_title(); ?>"><?php print do_excerpt(get_the_excerpt(), $options['snippet_level2']); ?></p>

    to

    <p>" title="<?php the_title(); ?>"><?php the_content(); ?></p>

  5. Mark / t31os
    Moderator
    Posted 4 years ago #

    I think the above snippet is missing the <a href= etc.. because it wasn't posted in backticks esmi (forum converted the link). ;)

    Try.
    <p><?php print do_excerpt(get_the_excerpt(), $options['snippet_level2']); ?></p>

  6. esmi
    Forum Moderator
    Posted 4 years ago #

    Whoops - my bad!

  7. Tee
    Member
    Posted 4 years ago #

    Fellas..

    I only have this code
    <p><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php print do_excerpt(get_the_excerpt(), $options['snippet_level2']); ?></a></p>

    I don't have this code
    <p>" title="<?php the_title(); ?>"><?php print do_excerpt(get_the_excerpt(), $options['snippet_level2']); ?></p>

    So do you guys want me to change;
    ?>" title="<?php the_title(); ?>"><?php print do_excerpt(get_the_excerpt(), $options['snippet_level2']); ?></a></p>

    to this?
    <p>" title="<?php the_title(); ?>"><?php the_content(); ?></p>

  8. esmi
    Forum Moderator
    Posted 4 years ago #

    Change:

    <p><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php print do_excerpt(get_the_excerpt(), $options['snippet_level2']); ?></a></p>

    to

    <p><?php the_content();?></p>

    Sorry for the confusion.

  9. Tee
    Member
    Posted 4 years ago #

    no probs.

    You know it did work the only problem was, it broke the style of the site which wasn't cool :(

    Here's a snapshot: http://img26.imageshack.us/img26/4141/picture2vdv.png

  10. Mark / t31os
    Moderator
    Posted 4 years ago #

    There's nothing in the stylesheet to suggest it should behave any differently..

    Are you sure you didn't remove anything else by mistake?

    The above change is no different then changing the following..
    <a href="http://www.somerandomnonexistentlink.com">Example</a>
    to
    Example

  11. Tee
    Member
    Posted 4 years ago #

    Hey...

    Yeah that's what i did for the home.php i removed all of the
    <p><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php print do_excerpt(get_the_excerpt(), $options['snippet_level2']); ?></a></p>

    and replaced it with the
    <p><?php the_content();?></p>

    Here's the home.php with the removed codes of the above: http://www.filedropper.com/home_5

    Here's the original home.php
    http://www.filedropper.com/home_6

    Let me know what you think fellas.
    Thanks again for your help :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags