Ask your WordPress questions! Pay money and get answers fast! (more info)

Edit my Theme WordPress

  • SOLVED

I need help with my current theme, mine using Sahifa theme. I want to make all my post looks like first post (blue circle). So basically post in red circle, will looks like on blue circle. Sorry for my English -_-

*my site is mmodash.com

Answers (4)

2013-04-04

juan manuel incaurgarat answers:

I can do it.
Email me to [email protected]
thanks

juan

2013-04-04

Marko Nikolic answers:

Hey,

can you provide a link to the site? It should be pretty easy task, but need access to your dashboard (or at least to the site url) so I could complete it.

-M


zirkov comments:

My site is mmodash.com, you can pm me for dashboard access ;)

2013-04-04

takycardia answers:

Hi,
you should open via ftp this file: home-cats.php
you can find it here:
wp-content/themes/functions/

Please modify it with a good 'text editor' like Notepad++ (please,please,please, do not use MS Word).

Around line 29 you'll see this:


<li class="first-news">
<div class="inner-content">
<?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
<?php tie_thumb('',272,125); ?>
<span class="overlay-icon"></span>
</a>
</div><!-- post-thumbnail /-->
<?php endif; ?>

<h2><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<p class="post-meta">
<?php tie_get_score(); ?>
<?php the_time(get_option('date_format')); ?>
<?php comments_popup_link( __( 'Leave a comment', 'tie' ), __( '1 Comment', 'tie' ), __( '% Comments', 'tie' ) ); ?>
</p>

<div class="entry">
<?php tie_excerpt_home() ?>
<a class="more-link" href="<?php the_permalink() ?>"><?php _e( 'Read More &raquo;', 'tie' ) ?></a>
</div>
</div>
</li><!-- .first-news -->


Copy/paste it replacing everything from line 55 to 67

<li>
<?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php tie_thumb('',55,55); ?></a>
</div><!-- post-thumbnail /-->
<?php endif; ?>
<h3><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<p class="post-meta">
<?php the_time(get_option('date_format')); ?>
<?php comments_popup_link( __( 'Leave a comment', 'tie' ), __( '1 Comment', 'tie' ), __( '% Comments', 'tie' ) ); ?>
<?php tie_get_score(); ?>
</p>
</li>


It should do the trick :-)

Before modifying this file be SURE to have a backup copy, I repeat MAKE A BACKUP copy please.

Good Luck.


zirkov comments:

Hi,

it didnt work for me, my current newsbox using 1C (start from line 79)

2013-04-05

Duncan O'Neill answers:

Hi there,

a simple way to do this would be to add the class of "first-news" to /every/ li element within the div with a class of 'cat-box-content'.

If you can find that piece of code within your index.php file, or home-cats.php, as above, then that will do the trick.

skype:maxwell_s

best,