• my website is not complete, but im having issues with the home page.
    the featured post below the slide and gallery are way too long. they double the size of my page. i am wondering if there is a code, widget, or plugin that will summarize this so the only the thumbnail and a small excerptt for the post show up.
    jose romero
    https://www.mypokercareer.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • Use <?php the_excerpt;?> instead of <?php the _content;?> in your template pages.

    Thread Starter lionaffiliate

    (@lionaffiliate)

    yes. here is the code below.

    <?php include(TEMPLATEPATH."/config.inc.php");?>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    <head profile="https://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/print.css" type="text/css" media="print" />
    <!--[if IE]><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/ie.css" type="text/css" media="screen, projection" /><![endif]-->
    <script src="<?php bloginfo('template_url'); ?>/js/theme.js" type="text/javascript"></script>
    <script type="text/javascript" src="<?php echo bloginfo(stylesheet_directory) .'/domtab.js'; ?>"></script>
    <?php wp_head(); ?>
    
    <title><?php wp_title(' '); ?><?php if(wp_title(' ', false)) { echo ' -'; } ?> <?php bloginfo('name'); ?></title>
    </head>
    
    <body>
    <div class="container">
    
    	<div id="header">
    
    <div id="headline">
    <div id="headline_h1">
    
    <?php if (is_home()) { ?>
    
     	<h1><img src="https://mypokercareer.com/wp-content/themes/pokerface/images/logo.png"></h1>
    
    <?php
    } else { ?>
    
    <h2><a href="<?php echo get_option('home'); ?>" title="<?php _e('Home'); ?>"><?php bloginfo('name'); ?></a></h2>
    
    <?php } ?>
    
    </div>
    <div class="headerMenu">
    
    <div class="rssIco">
    <a href="<?php if($db_feedburner_address) { echo $db_feedburner_address; } else { bloginfo('rss2_url'); }?>"><img src="<?php bloginfo('template_url'); ?>/images/i_rss.jpg" alt="" /></a>
    </div>
    
    <div class="emailIco">
    Subscribe by Email
    <form action="https://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('https://feedburner.google.com/fb/a/mailverify?uri=YOURIDHERE', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"><input type="text" name="email" class="field"/><input type="hidden" value="NAMEOFYOURBLOGHERE" name="uri"/><input type="hidden" name="loc" value="en_US"/><input type="submit" class="newsbutton" value="SUBSCRIBE" /></form>
    </div>
    
    </div>
    </div>
    
            <ul class="menu">
                <li class="page_item page_item_1 <?php if ( is_home() ) { ?>current_page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>/" title="Home">Home</a></li>
    			<?php wp_list_pages('title_li=&depth=1' ); ?>
       		</ul>
    
      </div><!-- end #header -->
    
      <div class="clear"></div>
    
    <div style="margin:0; "><img src="<?php bloginfo('template_url'); ?>/images/content_t.gif" alt="" /></div>

    Not your header.php. Change <?php the_content;?> to <?php the _excerpt;?> in index.php, single.php, page.php, etc.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Theme issue. home page too much. need to summary and create excerpts.’ is closed to new replies.