Custom Theme Mods
-
Hello I have a client with a custom theme titled SSX Theme.
I am currently upgrading plug ins and editing the site with new pages and feeds.
We want a static front page opposed to the blog as being the “home” page. I have tried all the standard settings to “use static page” but when I do the widgets on the main page revert to a single page view. My slider is gone and my Facebook and Twitter widget feeds are gone as well.
In short I can not get my home page in the container on the main page.
—
Here is what the functions.php code looks like for the container.
function ssxtheme_wp_title( $title, $sep ) {
global $paged, $page;if ( is_feed() )
return $title;// Add the site name.
$title .= get_bloginfo( ‘name’ );// Add the site description for the home/front page.
$site_description = get_bloginfo( ‘description’, ‘display’ );
if ( $site_description && ( is_home() || is_front_page() ) )
$title = “$title $sep $site_description”;// Add a page number if necessary.
if ( $paged >= 2 || $page >= 2 )
$title = “$title $sep ” . sprintf( __( ‘Page %s’, ‘ssxtheme’ ), max( $paged, $page ) );return $title;
}
add_filter( ‘wp_title’, ‘ssxtheme_wp_title’, 10, 2 );—–Here is code on index.php——
<section id=”body_container”>
<div class=”wrapper”>
<section class=”blog_sec”>
<h1><img src=”<?php bloginfo(‘template_url’); ?>/images/news.png” alt=””>Latest News</h1><?php $i=1;
query_posts(array(‘showposts’=>2,’order’=>’DESC’));if(have_posts()):while(have_posts()):the_post(); ?>
———–
I do not have to worry about updates so I can modify the files directly and I’ve created a child as well, I must be missing something basic here.
I have only been using WordPress for about a year now and I have not seen this type of code in other themes.
Any input would be great.
Thanks
- The topic ‘Custom Theme Mods’ is closed to new replies.