StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Replace "Featured Posts" in home by a simple text (http://www.studiopress.com/support/showthread.php?t=34864)

Francois Laurent 08-09-2010 09:16 AM

Replace "Featured Posts" in home by a simple text
 
Hello

In my blogsite's home http://www.francerepublique.net/WordPress/
I wan't to write an EDITO instead of "DERNIERS ARTICLES" (featured posts)

So I want to delete "DERNIERS ARTICLES" (at the bottom of the featured content gallery - the resumes and the little pictures) to an EDITO (like a simple widget text)

It's possible? What's the solution?

Thank you very much

François

CharlesClarkson 08-09-2010 11:17 AM

Quote:

Originally Posted by Francois Laurent (Post 179160)
It's possible? What's the solution?

Change the name of the category from Derniers Articles to Edito.


HTH,

Francois Laurent 08-10-2010 03:28 AM

I do that: http://www.francerepublique.net/WordPress/

but there's only a resume from my edito (only 2 lines) (Edito is a category)

I wan't an entire text (whether about 20 lines)

Here's this text to make in home: http://www.francerepublique.net/WordPress/?p=355

(Sorry for my english)

Thx a lot

François

CharlesClarkson 08-10-2010 03:42 AM

I'm sorry. I don't understand. Changing the name of the category shouldn't have changed anything except the name. Everything else should still be the same. Did you do something else?

Francois Laurent 08-10-2010 04:16 AM

I make an image from photoshop to show you what I want (lol):
http://francerepublique.net/WordPres...Home-edito.jpg

So actually i've just a resume from my edito (because Edito is a simple article and resumed in the featured post from home >> in the "Allure theme options" I can't make a text in home instead of "featured posts")


What's the solution to make this text in my home?

Thx :wink:

Francois Laurent 08-11-2010 03:34 AM

There's no way to put a simple text in the home (like this picture http://francerepublique.net/WordPres...Home-edito.jpg) ??


Pleaaase help :roll:

Thank you

CharlesClarkson 08-11-2010 12:31 PM

Quote:

Originally Posted by Francois Laurent (Post 180067)
There's no way to put a simple text in the home (like this picture http://francerepublique.net/WordPres...Home-edito.jpg) ??

Look in the home.php theme file for a line with the the_content_limt() function on it and change it to the the_content() function. If you can't find the line, paste the contents of your home.php theme file in a reply and I'll find it for you.


HTH,

bodibuddie 08-13-2010 12:17 AM

Francois, your site has such beautiful color and I love the vertical lines.

I did the same thing for one of my sites, but I did it differently by putting a higher number in the code i.e. the_content_limt(400) I wanted more text from each story to show but not all of it, however as Charles posted if you take that part off then it will be the whole post.

Francois Laurent 08-16-2010 08:16 AM

OK thx :wink:

But I can't find the line "the_content_limt() function" in my home.php

My home.php :

PHP Code:

<?php get_header(); ?>

<div id="wrap">

<div id="content">

    <div id="homepage">
    
        <?php /*Check for the 'gallery_styles' function. if it's there, then include it. If not, do nothing*/ ?>
        <?php if (function_exists('gallery_styles')) : ?>
           <div id="fcg">
            <?php include (ABSPATH '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
        </div>
        <?php endif; ?>  
            
        <div class="homepageleft">
            <?php $featured_cat_1 get_option('allure_featured_cat_1'); $featured_cat_1_num get_option('allure_featured_cat_1_num'); if(!$featured_cat_1$featured_cat_1 1//setting a default ?>
            <h3><?php echo cat_id_to_name($featured_cat_1); ?></h3>    
            <div class="homebox">   
                <?php $recent = new WP_Query("cat=".$featured_cat_1."&showposts=".$featured_cat_1_num); while($recent->have_posts()) : $recent->the_post();?>              
                <?php if( get_post_meta($post->ID"thumbnail"true) ): ?>
                <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID"thumbnail"true); ?>" alt="<?php the_title(); ?>" /></a>
                <?php else: ?>
                <?php endif; ?>    
                <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
                <?php the_content_limit(110""); ?>
                <div style="border-bottom:1px solid #DDDDDD; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
                <?php endwhile; ?>
                
            <b><a href="<?php echo get_category_link($featured_cat_1); ?>" rel="bookmark">Tous les articles</a></b>
                
            </div> 
                                                               
        </div>
        
        <div class="homepageright">
            <?php $featured_vid_1 get_option('allure_featured_vid_1'); $featured_vid_1_num get_option('allure_featured_vid_1_num'); if(!$featured_vid_1$featured_vid_1 1//setting a default ?>           
            <h3><?php echo cat_id_to_name($featured_vid_1); ?></h3>    
            <div class="homebox">    
                <?php $recent = new WP_Query("cat=".$featured_vid_1."&showposts=".$featured_vid_1_num); while($recent->have_posts()) : $recent->the_post();?>
                <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
                <?php the_content(__('Read more'));?>
                <?php endwhile; ?>
            
            <?php $featured_vid_1 get_option('allure_featured_vid_1'); $featured_vid_1_num get_option('allure_featured_vid_1_num'); if(!$featured_vid_1$featured_vid_1 1//setting a default ?>  
            <h4>More <?php echo cat_id_to_name($featured_vid_1); ?></h4>
                <ul>
                    <?php $recent = new WP_Query("cat=".$featured_vid_1."&showposts=".$featured_vid_1_list."&offset=".$featured_vid_1_num); while($recent->have_posts()) : $recent->the_post();?>
                    <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
                    <?php endwhile; ?>
                </ul>
                
            </div>            

        </div>    

    <div style="clear:both;"></div>
        
    </div>
            
    <?php include(TEMPLATEPATH."/sidebar.php");?>

</div>

<!-- The main column ends  -->

<?php get_footer(); ?>

I hope and wait your answer!!

And thank you Bodibuddie, I see that :wink:

CharlesClarkson 08-16-2010 11:33 AM

Quote:

Originally Posted by Francois Laurent (Post 182355)
But I can't find the line "the_content_limt() function" in my home.php

My home.php :

PHP Code:

<?php the_content_limit(110""); ?>


It would be that line. Change it to this:
PHP Code:

<?php the_content(__('Read more')); ?>


HTH,

Francois Laurent 08-20-2010 07:13 AM

OK

Thank you so much Charles! :clap::clap::clap:

It works!!

Best regards

François

CharlesClarkson 08-20-2010 08:16 AM

Quote:

Originally Posted by Francois Laurent (Post 184504)
Thank you so much Charles! :clap::clap::clap:

You're welcome.


All times are GMT -5. The time now is 11:02 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.