StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 08-09-2010, 09:16 AM
Francois Laurent Francois Laurent is offline
Registered User
 
Join Date: Sep 2009
Posts: 21
Default 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
  #2  
Old 08-09-2010, 11:17 AM
CharlesClarkson's Avatar
CharlesClarkson CharlesClarkson is offline
Community Moderator
 
Join Date: Feb 2009
Location: Stephenville, TX, USA
Posts: 11,356
Lightbulb

Quote:
Originally Posted by Francois Laurent View Post
It's possible? What's the solution?
Change the name of the category from Derniers Articles to Edito.


HTH,
__________________
Charles "Rubeus Hagrid" Clarkson
StudioPress on Facebook

I'm not really a smart person. I just play one on the Internet.

Please use the HTML or PHP tags for pasting code.
Please make your links click-able: this_is_annoying.com
http://this_is_not_annoying.com.
  #3  
Old 08-10-2010, 03:28 AM
Francois Laurent Francois Laurent is offline
Registered User
 
Join Date: Sep 2009
Posts: 21
Default

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
  #4  
Old 08-10-2010, 03:42 AM
CharlesClarkson's Avatar
CharlesClarkson CharlesClarkson is offline
Community Moderator
 
Join Date: Feb 2009
Location: Stephenville, TX, USA
Posts: 11,356
Question

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?
__________________
Charles "Rubeus Hagrid" Clarkson
StudioPress on Facebook

I'm not really a smart person. I just play one on the Internet.

Please use the HTML or PHP tags for pasting code.
Please make your links click-able: this_is_annoying.com
http://this_is_not_annoying.com.
  #5  
Old 08-10-2010, 04:16 AM
Francois Laurent Francois Laurent is offline
Registered User
 
Join Date: Sep 2009
Posts: 21
Default

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
  #6  
Old 08-11-2010, 03:34 AM
Francois Laurent Francois Laurent is offline
Registered User
 
Join Date: Sep 2009
Posts: 21
Default

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


Pleaaase help

Thank you
  #7  
Old 08-11-2010, 12:31 PM
CharlesClarkson's Avatar
CharlesClarkson CharlesClarkson is offline
Community Moderator
 
Join Date: Feb 2009
Location: Stephenville, TX, USA
Posts: 11,356
Lightbulb

Quote:
Originally Posted by Francois Laurent View Post
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,
__________________
Charles "Rubeus Hagrid" Clarkson
StudioPress on Facebook

I'm not really a smart person. I just play one on the Internet.

Please use the HTML or PHP tags for pasting code.
Please make your links click-able: this_is_annoying.com
http://this_is_not_annoying.com.
  #8  
Old 08-13-2010, 12:17 AM
bodibuddie bodibuddie is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Jun 2009
Location: Santa Cruz
Posts: 30
Default

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.
  #9  
Old 08-16-2010, 08:16 AM
Francois Laurent Francois Laurent is offline
Registered User
 
Join Date: Sep 2009
Posts: 21
Default

OK thx

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

Last edited by CharlesClarkson; 08-16-2010 at 11:28 AM. Reason: Changed quoted code to PHP code.
  #10  
Old 08-16-2010, 11:33 AM
CharlesClarkson's Avatar
CharlesClarkson CharlesClarkson is offline
Community Moderator
 
Join Date: Feb 2009
Location: Stephenville, TX, USA
Posts: 11,356
Lightbulb

Quote:
Originally Posted by Francois Laurent View Post
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,
__________________
Charles "Rubeus Hagrid" Clarkson
StudioPress on Facebook

I'm not really a smart person. I just play one on the Internet.

Please use the HTML or PHP tags for pasting code.
Please make your links click-able: this_is_annoying.com
http://this_is_not_annoying.com.
  #11  
Old 08-20-2010, 07:13 AM
Francois Laurent Francois Laurent is offline
Registered User
 
Join Date: Sep 2009
Posts: 21
Default

OK

Thank you so much Charles!

It works!!

Best regards

François
  #12  
Old 08-20-2010, 08:16 AM
CharlesClarkson's Avatar
CharlesClarkson CharlesClarkson is offline
Community Moderator
 
Join Date: Feb 2009
Location: Stephenville, TX, USA
Posts: 11,356
Thumbs up

Quote:
Originally Posted by Francois Laurent View Post
Thank you so much Charles!
You're welcome.
__________________
Charles "Rubeus Hagrid" Clarkson
StudioPress on Facebook

I'm not really a smart person. I just play one on the Internet.

Please use the HTML or PHP tags for pasting code.
Please make your links click-able: this_is_annoying.com
http://this_is_not_annoying.com.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DCG - How to Change "Featured Articles" Text to "Featured Pages" In Drop-down Pane Atilla General Discussion 3 01-24-2011 05:08 PM
Need to add "alt text" to thumbnail images home page posts loosecannon99 General Discussion 2 01-13-2010 02:14 PM


All times are GMT -5. The time now is 12:31 AM.

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