• Hey Folks.

    Im sorry for bombarding you all with these questions… check it out; https://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?

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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>

    Thread Starter Tee

    (@pumatalk)

    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 https://www.filedropper.com/home_4 please let me know what I need to remove…?

    Thanks again!

    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>

    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>

    Whoops – my bad!

    Thread Starter Tee

    (@pumatalk)

    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>

    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.

    Thread Starter Tee

    (@pumatalk)

    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: https://img26.imageshack.us/img26/4141/picture2vdv.png

    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="https://www.somerandomnonexistentlink.com">Example</a>
    to
    Example

    Thread Starter Tee

    (@pumatalk)

    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: https://www.filedropper.com/home_5

    Here’s the original home.php
    https://www.filedropper.com/home_6

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to remove linked intro text for post on homepage’ is closed to new replies.