venkymyfreelancelifestyle
Forum Replies Created
-
hey,kidcompassion
it worked,but it appeared above THE POST TITLE.
i want it to appear BELOW THE POST TITLE.
This meta data information appears only in HOME PAGE.
if i click on particular post,then the post appears in full and there will be no META DATA INFORMATION BELOW POST TITLE.
what to do. please help me friend.
this is my index.php file where i added entry meta code.but after updating file,site is not loading:
<?php
/**
* The main template file
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* For example, it puts together the home page when no home.php file exists.
*
* @link https://codex.www.ads-software.com/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/get_header(); ?>
<div id=”primary” class=”site-content”>
<div id=”content” role=”main”>
<?php if ( have_posts() ) : ?><?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?><p class=”post-info”> by <a href=”<?php echo get_author_posts_url(get_the_author_meta
(‘ID’)); ?>”><?php the_author(); ?> | on <?php the_time(‘F jS, y’); ?> | posted in
<?php$categories = get_the_category();
$separator = “, “;
$output = ”;if ($categories) {
foreach ($categories as $category) {$output .= ‘term_id) . ‘”>’ . $category->cat_name . $separator;
}
echo trim($output, $separator);
}
?></p>
<?php get_template_part( ‘content’, get_post_format() ); ?>
<?php endwhile; ?><?php twentytwelve_content_nav( ‘nav-below’ ); ?>
<?php else : ?>
<article id=”post-0″ class=”post no-results not-found”>
<?php if ( current_user_can( ‘edit_posts’ ) ) :
// Show a different message to a logged-in user who can add posts.
?>
<header class=”entry-header”>
<h1 class=”entry-title”><?php _e( ‘No posts to display’, ‘twentytwelve’ ); ?></h1>
</header><div class=”entry-content”>
<p><?php printf( __( ‘Ready to publish your first post? Get started here.’, ‘twentytwelve’ ), admin_url( ‘post-new.php’ ) ); ?></p>
</div><!– .entry-content –><?php else :
// Show the default message to everyone else.
?>
<header class=”entry-header”>
<h1 class=”entry-title”><?php _e( ‘Nothing Found’, ‘twentytwelve’ ); ?></h1>
</header><div class=”entry-content”>
<p><?php _e( ‘Apologies, but no results were found. Perhaps searching will help find a related post.’, ‘twentytwelve’ ); ?></p>
<?php get_search_form(); ?>
</div><!– .entry-content –>
<?php endif; // end current_user_can() check ?></article><!– #post-0 –>
<?php endif; // end have_posts() check ?>
</div><!– #content –>
</div><!– #primary –><?php get_sidebar(); ?>
<?php get_footer(); ?>nothing changed
Forum: Fixing WordPress
In reply to: how to change font size and font family in twentytwelve-childHello rajat, andrew
you solved my problem. may god bless you. thak you both very much.
Forum: Fixing WordPress
In reply to: how to change font size and font family in twentytwelve-childrajat sir
i added exactly what you posted on GITHUB.font-family has changed, but some text(body) and some h2,h3 so on…has not changed.
please look at site once again
Forum: Fixing WordPress
In reply to: how to change font size and font family in twentytwelve-childHallow rajat
your solution couldn’t help me.
Hallow andrew
i can’t understand what you are saying.
please help me.
sir
i edited functions.php and content.php file as you said.but below the post title,i am unable to see auther name and date.and there is no stuff like “this entry was posted…” below the post,fine, i don’t want that stuff.
the problem is to remove”leave a reaply” and add author name and date below the post title.
Forum: Themes and Templates
In reply to: how to add author name and date below the titleok
Forum: Themes and Templates
In reply to: changing menu bar in twentytwelve-childForum: Fixing WordPress
In reply to: about menu barthank you
Forum: Fixing WordPress
In reply to: about menu barForum: Themes and Templates
In reply to: child theme looking differentthank you. it helped
Forum: Fixing WordPress
In reply to: removing white spacethank you,sir.
you solved my problem.as you said,i learn css and firebug.
once again,thank you for helping me.Forum: Fixing WordPress
In reply to: removing white spaceForum: Fixing WordPress
In reply to: removing white spaceyour ‘code’ is not working,sir.please help me.