Nutrawee
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Every Image shows twice on the pageIt just a template problem.
You have to fix your template.Forum: Themes and Templates
In reply to: How do I remove date created and author from my pages?It just about CSS.
For example
<div id=”author”>
author name here
</div><div id=”content”>
content here
</div>There are 2 section author & content, developer will define in CSS file that section with id = author should use a bold font and section with id = “content” should use normal weight font.
and the problem occur when you delete some line in the template, therefor the structure change. For example
<div id=”author”>
content here
</div>Now the content is in “author” section, so it display as bold text.
I think.
Forum: Themes and Templates
In reply to: How do I remove date created and author from my pages?Your page.php should be like this
<?php get_header(); ?> <?php get_sidebar(); ?> <div id="main"> <!--Begin main --> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>" class="xfolkentry"> <h2><a href="<?php the_permalink() ?>" class="taggedlink entry-title" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="description"> <?php the_content('Read the rest of this entry »'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div><!-- End description --> <?php if ('open' == $post->comment_status) : ?> <!--comments are open --> <p class="details"><a href="<?php comments_link(); ?>">Comments (<?php comments_number('0','1','%'); ?>)</a><?php edit_post_link('Edit', ' | ', ''); ?></p> <?php else: ?> <!--comments are closed --> <?php /*check to see if there are any comments*/ if ($comments) : ?> <p class="details"><a href="<?php comments_link(); ?>">Comments (<?php comments_number('0','1','%'); ?>)</a><?php edit_post_link('Edit', ' | ', ''); ?></p> <?php else: /* Any detail should not be shown because no comments and comments are closed*/?> <!-- <p class="details"><a href="<?php comments_link(); ?>">Comments (<?php comments_number('0','1','%'); ?>)</a><?php edit_post_link('Edit', ' | ', ''); ?></p> --> <?php endif; ?> <?php endif; ?> <?php comments_template(); ?> </div><!-- div post-<?php the_ID(); ?> ends here --> <?php endwhile; else : ?> <h1>Not Found</h1> <p>We respect your curiosity! But, what you are looking is not present here. Don't be disappointed, keep the spirit spirits high, keep learning, keep finding! Curiosity is good, first step towards innovation.</p> <?php endif; ?> </div><!--End main --> </div><!-- End center --> </div><!--End primary--> <?php get_footer(); ?>Forum: Themes and Templates
In reply to: How do I remove date created and author from my pages?I think the page structure was changed.
Did you only removed these 2 lines ?
<div class=”date”><abbr class=”published updated” title=”<?php the_time(‘Y-m-d\TH:i:s\Z’); ?>”><?php the_time(‘F jS, Y’) ?></abbr></div>
<span class=”vcard author”>by<span class=”fn”> <?php the_author() ?></span></span>Forum: Fixing WordPress
In reply to: How to have two different comment templatessorry for double posting
Forum: Fixing WordPress
In reply to: How to have two different comment templateshttp://codex.wordpress.org/Function_Reference/comments_template
create new comment template e.g., comment2.php
then <?php comments_template(‘/comment2.php’); ?>Forum: Fixing WordPress
In reply to: plugins on localhost not workingUse mozilla fire fox + fire bug to check that jQuery is collectly loaded
I think there are some errors.
Forum: Themes and Templates
In reply to: function not run!Sorry, I have tried this code in my local and it work well.
First, you have check the $tank value by using this code.
<div class=”innertube”>test<?php print ‘[‘ . $tank . ‘]’; ?></div>
If there is nothing in “[]”, it means that your testing method is wrong.
Your testing url should be like thislocalhost/mysite/post/?lang=en
Forum: Fixing WordPress
In reply to: How to reference local blog address for link imagesI think you want to add credit link & image to your published theme.
May be you have to use pre_link_image filter.http://codex.wordpress.org/Plugin_API/Filter_Reference#Blogroll_Filters
Forum: Fixing WordPress
In reply to: how to put a margin around the images of the postsYour current image tag is
<img class=”alignright size-thumbnail wp-image-103″ width=”100″ height=”100″ alt=”Imagen 2″ src=”http://visual.gi/blog/wp-content/uploads/2009/09/Imagen-2-100×100.png” title=”Imagen 2″/>
It doesn’t have
style=”margin: 10px;”
or something like this.
so, please try to put this attribute
margin:20px; put it into style in advance settingForum: Fixing WordPress
In reply to: how to put a margin around the images of the postsI think your theme style sheet is overwrite css rule.
Could you tell me your url.Forum: Fixing WordPress
In reply to: how to put a margin around the images of the postsDid you use horizontal and vertical space?
Forum: Fixing WordPress
In reply to: how to put a margin around the images of the postsClick the picture, then click on edit image icon on the top-left corner, after that the image properties window will pop up.
Select advance setting.Forum: Themes and Templates
In reply to: function not run!Stay cool … I’m trying to help you
The php code has been run. So, it means the problem is $tank.Forum: Themes and Templates
In reply to: function not run!try
<?php $myImage = 'abc'; $tank = ($_GET['lang']); if ($tank=="fa") { $myImage = "<IMG SRC =assets/img/scenert.png>"; } if ($tank=="en") { $myImage = "<IMG SRC =assets/img/scenerten.png>"; } ?>if you see abc on your page, it means the problem is $tank