Modify posts
-
Hi,
I have just created a website : http://www.yourdailywatch.com with the folioway theme
1)I need to let the image fullsized in the post, here it is croped up and down.
2)I need to remove the link on the image
3)I need to remove “continue reading” and “posted by”
Can you help me please? Thanks
Philippe
-
Image: Change thumb.php call to:
thumb.php?src=/wp-content/uploads/2011/12/Omega-Planet-Ocean-2500-D9.jpg&w=640&q=90Edit the template’s page.php file to remove the link on the image.
Edit the template’s page.php file to remove the Continue Reading and Post by.
That’s right, ftp in, open page.php. Scan the file to see where this info is being called and edit or remove it.
I can’t find any of these information in page.php file:
<?php get_header(); echo ‘</div>’; // close #background ?>
<div id=”container”>
<div class=”inner”><div id=”content”>
<?php the_post(); ?><div id=”post-<?php the_ID() ?>” class=”single page”>
<h1 class=”post-title super-heading”><?php the_title() ?></h1>
<div class=”post-content”>
<?php $iwak->the_content() ?>
</div>
</div><!– .post –>
<?php comments_template() ?></div><!– #content –>
<div id=”archive-sidebar” class=”sidebar”>
<?php iwak_get_sidebar(‘Page Sidebar’); ?>
</div><div class=”clear”></div>
</div><!– .inner –>
</div><!– #container –><?php get_footer() ?>
I found the “posted by” and “continue reading” in index.php but when I remove the info they are still displayed on the site
The file template-blog.php seems to be the right file. Unfortunately if I remove the functions, it creates an error on my site. Can You tell me what I need to remove exactly please? Thanks
<?php if (have_posts()) : while ( have_posts() ) : the_post(); $i++; ?>
<div id=”post-<?php the_ID() ?>” class=”post entry<?php echo $i == 1 ? ‘ first’ : ”; ?>”>
<h2 class=”post-title”><span class=”day”><?php the_time(‘d’);?></span><span class=”month”><?php the_time(‘M’); ?></span><?php $iwak->the_post_link(get_the_title()); ?></h2><?php if($src = $iwak->get_post_image_url(array(640, 240))): ?>
” href=”<?php echo get_permalink(); ?>”>
<img class=”thumbnail” src=”<?php echo $src; ?>” />
<?php endif; ?><div class=”post-content”><?php $iwak->the_content(array(‘more_text’=>__(‘Continue Reading’, THEME_NAME))); ?></div>
<div class=”post-meta”>
<?php _e(‘Posted by ‘, THEME_NAME); the_author_posts_link();
_e(‘ in ‘, THEME_NAME); echo get_the_category_list(‘, ‘);
if(comments_open()) {
_e(‘, Followed with ‘, THEME_NAME);
comments_popup_link( __(‘0 Comment’, THEME_NAME), __(‘1 Comment’, THEME_NAME), __(‘% Comments’, THEME_NAME) );
}
//edit_post_link( __( ‘edit’, THEME_NAME ), ‘(‘, ‘)’ ); ?>
</div>
</div>
<?php endwhile; ?>Ah yes, that is the thing with WordPress themes. There are soooo many ways to achieve the same thing.
You should learn about WordPress template hierarchy. It will explain how editing index.php; changes did not show up on the front end.
Try this:
<div class="post-content"> <?php $iwak->the_content(); ?> </div> <div class="post-meta"> <!-- nothing here --> </div>You may have to hire professional help. Go over to http://fiverr.com and find somebody to do the dirty work for $5.00.
Thanks for your help!
The topic ‘Modify posts’ is closed to new replies.