deepakjeswal
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Recent Post Link Below PostsSorry, I had to remove the code since a strange thing was happening. All comments were showing only of the ‘recent post’
Basically, this is what I had done:
<p style='border:thin dotted blue;padding:3mm;'> Have you read Random Expression's latest post:- <?php $posts = get_posts('numberposts=1'); foreach($posts as $post) : ?> <a href= "<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php endforeach; ?> </p>
But I noticed that in all posts only the comments of the recent post were showing!
Can someone help to use such a feature?
Once again, many thanks … Deepak
Forum: Plugins
In reply to: Official comment PluginReally sorry to be so much troublesome. But I still dont get it at all. My bad day I suppose!
I have now found the loop, and done the following:
<?php foreach ($comments as $comment) : ?>
<?php if(is_wpuser_comment() != 0) {echo “Official”;} ?>
<li class=”comment <?php echo (is_wpuser_comment() ? ‘ commentOfficialUser’ : ”); ?>” id=”comment-<?php comment_ID() ?>”>
IN the Style sheet I have put this up:
/* Begin Comments*/
.alt {
margin: 0;
padding: 10px;
}.commentlist {
padding: 0;
text-align: justify;
}.commentlist li {
margin: 15px 0 3px;
padding: 5px 10px 3px;
list-style: none;
}.commentlist p {
margin: 10px 5px 10px 0;
}.commentOfficialUser {
border: 1px solid black;
background-color: #999999
}BUT – All I get is one small thin grey strip OVER the comment.
ALL I WANT to do is – have my comments in a solid colored box, so that they are differentiated.
Would also want the word “Official” to go, as it doesnt gel well, and merges into the comment over it! I removed it from the quotes after ‘echo’, and it seemed to go, but was that the right thing to do?
As of now its looking like this:https://www.deepakjeswal.com/?p=9#comments
Once again apologies for being a pain!
Forum: Plugins
In reply to: Official comment PluginSigh, this only confused me more! Simply, where do i put both the php and css codes. I m sure there must be a simpler method for someone who is seeing PHP for the first time in life!
Forum: Plugins
In reply to: Official comment PluginI meant *but what is ‘comment loop’
Forum: Themes and Templates
In reply to: Kubrick Default ThemeBTW, the sidebar thing got resolved. The problem *was* in my browser only – somehow the ‘view’ mode had gone to ‘small’ fonts!
Forum: Themes and Templates
In reply to: Kubrick Default ThemeThanks Samboll ! Will try this out !
Forum: Themes and Templates
In reply to: Kubrick Default ThemeHi Friends,
I am new to WordPress, and wud like to know a few things. I will be using Kubricks theme only
a) How do i increase the post area size? (That is the written matter area size shud be more than given to me…want to reduce the overall sidemargin of pages a bit)
b) The sidebar thingies are coming very miniature in size. Dunno if its a problem with my browser or not. Actually, once i posted a post with ‘georgia’ font and the sidebar automatically looked good. I dont know what the connxn betn the two is, shudnt have happened. But it did.
c) Just in case, i want to change the image on top of the page, how do i do it in this theme?
Any and every help is more than welcome!
I am a CSS illeterate largely, so pls explain in simple terms as explaining to a child.
Thanks!