Thanks!
]]>https://blog.igniteguitar.com
Any help would be appreciated.
Thanks.
– Post thumbnail support
– Header re-size support via functions.php
– Featured image slider.
Theme options features
– Select which category images are pulled from
– Select transition effect for slider
– Choose number of images to cycle through
– Select transition speed
– Select image pause time
– Option to turn slider off, or both slider and header off.
– Select to display default posts or excerpts with post thumbnail.
Other Features
– Slider will display images from whichever category you tell it to and display them in the header, if there isn’t any, it will display your default header image.
– Header images are linked to the related post.
– Instead of the image name being displayed in the slider, the related post title will be displayed.
– Fully commented theme files in case you want to change anything.
GPL Licensed
Download: https://zeaks.org/twenty-ten-slider-theme/
At the moment I’m creating a child theme from Twenty Ten, and I’m wondering how I can display posts from a single category, a category that will not display on the main news page? Also to make matters a bit more complex I can’t use the main ‘index loop’ as the category in question has to look completely different from the rest of the site. Any ideas?
Thanks
]]>I need to change “Posted on …. by admin” in twenty ten theme. I need to be same but i need to change the format of the date and shows the name of the author in my own language which is not English.
]]>Even if it was one of the most downloaded themes from RevolutionTwo, the Allure theme did not made it as Genesis child theme, so for the fans of this theme here’s the good news. Allure theme turned into Twenty Ten child theme, now called TwentyTen Allure.
Demo and download link can be found here.
The theme inherits WordPress core, Twenty Ten and RevolutionTwo GPL license so you can use it in any way you like.
Enjoy!
]]>Im trying to change the header image width of my twenty ten child them when I add the short code to change it to my functions file I get
Parse error: syntax error, unexpected $end in… functions.php on line 132
here’s my code:
<?php
/** Tell WordPress to run child_theme_setup()
when the 'after_setup_theme' hook is run.
*/
add_action( 'after_setup_theme', 'child_theme_setup' );
/** This function will hold our new calls and over-rides */
if ( !function_exists( 'child_theme_setup' ) ):
function child_theme_setup() {
/*
We want a Second Navigation Bar right at the top
This theme uses wp_nav_menu() in two locations.
*/
register_nav_menus( array(
'secondary' => __( 'Top Navigation', 'twentyten' ),
) );
// Add support for Featured Images
if (function_exists('add_theme_support')) {
add_theme_support('post-thumbnails');
add_image_size('index-categories', 160, 124, true);
add_image_size('page-single', 350, 350, true);
}
function InsertFeaturedImage($content) {
global $post;
$original_content = $content;
if ( current_theme_supports( 'post-thumbnails' ) ) {
if ((is_page()) || (is_single())) {
$content = the_post_thumbnail('page-single');
$content .= $original_content;
} else {
$content = the_post_thumbnail('index-categories');
$content .= $original_content;
}
}
return $content;
}
add_filter( 'the_content', 'InsertFeaturedImage' );
// End Add support for Featured Images
/* Remove the Twenty Ten registered sidebars */
remove_action( 'widgets_init', 'twentyten_widgets_init' );
/** Add our Widgetized Areas */
function child_widgets_init() {
// Load our Widget Area Names and ID's into an Array
$widgets = array (
array(
"name" => "Sidebar Left One",
"id" => "sidebar-left-one"),
array(
"name" => "Sidebar Left Two",
"id" => "sidebar-left-two"),
array(
"name" => "Content Top",
"id" => "content-top"),
array(
"name" => "Content Left",
"id" => "content-left"),
array(
"name" => "Content Right",
"id" => "content-right"),
array(
"name" => "Content Bottom",
"id" => "content-bottom"),
array(
"name" => "Sidebar Right One",
"id" => "sidebar-right-one"),
array(
"name" => "Sidebar Right Two",
"id" => "sidebar-right-two"),
array(
"name" => "First Footer Widget",
"id" => 'first-footer-widget-area'),
array(
"name" => "Second Footer Widget",
"id" => 'second-footer-widget-area'),
array(
"name" => "Third Footer Widget",
"id" => 'third-footer-widget-area'),
array(
"name" => "Fourth Footer Widget",
"id" => 'fourth-footer-widget-area')
);
/* Loop through the array and add our Widgetised areas */
foreach ($widgets as $widget) {
register_sidebar( array(
'name' => __( $widget['name'], 'twentyten' ),
'id' => $widget['id'],
'description' => __( $widget['name'] .' Area', 'twentyten' ),
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
'after_widget' => '</li>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
}
}
/* Register sidebars by running twentyten_widgets_init() on the widgets_init hook. */
add_action( 'widgets_init', 'child_widgets_init' );
}
/* This gets rid of the pagenavi css in your header */
add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
function my_deregister_styles() {
wp_deregister_style( 'wp-pagenavi' );
}
/* Changes header image size */
add_action( 'after_setup_theme', 'child_theme_setup' );
if ( !function_exists( 'child_theme_setup' ) ):
function child_theme_setup() {
define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 900 ));
}
endif;
Not sure where I’m going wrong?
Many thanks
]]><?php
function exclude_category($query) {
if ( $query->is_home ) {
$query->set('cat', '-10 -11 -12');
}
return $query;
}
add_filter('pre_get_posts', 'exclude_category');
?>
]]>