Status
Not open for further replies.

3xupdate

Active Member
557
2010
56
10
Please help: Scripts on WP

I want to make "Read More Details" in bold and green color for hidden content
EX: Read More Details
Edit in post.php but I don't know PHP so help me if you can. Thank you !!!



PHP:
<?php if($post_preview<>'title'): ?>
   <div class="post-content clearfix">
    <?php
    if(is_search()):
     $content = get_the_excerpt();
     $keys= explode(" ",$searchquery);
     $content = preg_replace('/('.implode('|', escape_string_for_regex($keys)) .')/iu','<span class="altText highlight">\0</span>',$content);
     echo $content;
    else:
     if($post_preview=='excerpt'): the_excerpt(); else: the_content(__('Read More Details &gt;&gt;&gt;', 'mystique')); endif;
    endif; ?>
   </div>
 
Last edited:
7 comments
Open style.css
in there find
Code:
.post-content a.more-link

Just under this you'll see this:
Code:
color: #666666;

Replace it with
Code:
color: #007700;
font-weight:bold;
 
Status
Not open for further replies.
Back
Top