neverhurry
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Database problem aftern automatic upgradingI contact my web hoster, they have backups only for 7 days. So, it is helpless. My own fault. The lesson I learned from it is that one should really backup everything regularly, then as I changed the name of my site, I didn’t change the name of my database, that is why I deleted the “unknown” database. Sigh!
Forum: Fixing WordPress
In reply to: Database problem aftern automatic upgradingThanks a lot. I am very very sorry but I realized now that not long ago when I was installing another wordpress site, I deleted that database (veryeuro_cinask) by accident. My own fault. I am very very sorry to bother you. Is there any way to recover a mysql database? Thank you guys.
Forum: Themes and Templates
In reply to: twentyfifteen theme change the entry footer background colorWOW! Thanks a lot for your help, stephen! Much appreciated.
Forum: Themes and Templates
In reply to: twentyfifteen theme change the entry footer background colorPS: inside the functions.php file, I am not sure if I should add “?>” at the last line. Please advise me. Thanks.
Forum: Fixing WordPress
In reply to: Change colors of the comment numbersThank you Jose, but it is not of a specific comment.
Maybe I should make my expectation more clearly.
Let’s say a post has 3 comments with Twenty twelve theme. Then the comment link displays “3 replies”. What I want to do is to color only the number, not the text “replies”, so the number can stand out. I tried some 4 hours with no luck. Still hope somebody can help. Anyone?Forum: Fixing WordPress
In reply to: No indentation to first paragraphThank you Martin, it works now, maybe I didn’t clean the cache. Cheers!
Forum: Fixing WordPress
In reply to: Change colors of the comment numbersO, i made a mistake. I mean to add a class to “get_comments_number()” inside comments.php,
<h2 class="comments-title"> <?php printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); ?> </h2>
can you help with that? Thanks.
Forum: Fixing WordPress
In reply to: No indentation to first paragraphMartin, I tried it but it doesn’t work. Don’t why. I have child theme. Thank you.
Forum: Fixing WordPress
In reply to: Change colors of the comment numbersI think i found out where is the code. It is inside the content.php.
<?php if ( comments_open() ) : ?> <span class="comments-link"> <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> </span><!-- .comments-link --> <?php endif; // comments_open() ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Now, what I want to do is to add a class to “%”, but I don’t know how to do it. Any ideas? Thanks.
Forum: Fixing WordPress
In reply to: Change colors of the comment numbersI have searched all my themes CSS but found no class related to the comment numbers. Can you point me where I can make a class to it?
You can see the comment number in blue color.
Forum: Fixing WordPress
In reply to: Change colors of the comment numbershello, this is a link
The comment number is under the entry title on the right side.
Forum: Fixing WordPress
In reply to: Change colors of the comment numbersthe site is https://www.siluofake.com
thanks.Forum: Fixing WordPress
In reply to: Hide post content on home pageThanks ESMI, I tried it, it works!
Forum: Fixing WordPress
In reply to: Hide post content on home pageHi, I am not sure, I have no confidence, if the following codes are OK, pls help:
<?php if ( is_search() ) : // Only display Excerpts for Search ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php elseif ( is_single() ) : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?>
Forum: Fixing WordPress
In reply to: Hide post content on home pageI found in content.php of twenty twelve theme these codes:
<?php if ( is_search() ) : // Only display Excerpts for Search ?><br /> <div class="entry-summary"><br /> <?php the_excerpt(); ?><br /> </div><!-- .entry-summary --><br /> <?php else : ?><br /> <div class="entry-content"><br /> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?><br /> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?><br /> </div><!-- .entry-content --><br /> <?php endif; ?>
Now what I think logically, if I could only write a condition code – “If any single Post – after “<?php else : ?>”