So let met get this strait.
I got a theme with 3 collums and there is a single.php file which controlls the view of my type with slug called 'mycars'.
I have a second theme with 2 collums and I rename this single.php file to single-mycars.php and put this in my theme with 3 collums, and that would do the trick?
I tried this (below) and does not work…
This is my normal single.php:
<?php
/**
*
* single.php
*
* The single post template. Used when a single post is queried.
*
*/
get_header();
?>
<?php get_sidebar('top'); ?>
<?php
if (have_posts()) {
/* Display navigation to next/previous posts when applicable */
if (theme_get_option('theme_top_single_navigation')) {
theme_page_navigation(
array(
'next_link' => theme_get_previous_post_link('« %link'),
'prev_link' => theme_get_next_post_link('%link »')
)
);
}
while (have_posts()) {
the_post();
get_template_part('content', 'single');
/* Display comments */
if (theme_get_option('theme_allow_comments')) {
comments_template();
}
}
/* Display navigation to next/previous posts when applicable */
if (theme_get_option('theme_bottom_single_navigation')) {
theme_page_navigation(
array(
'next_link' => theme_get_previous_post_link('« %link'),
'prev_link' => theme_get_next_post_link('%link »')
)
);
}
} else {
theme_404_content();
}
?>
<?php get_sidebar('bottom'); ?>
<?php get_footer(); ?>
And this is my new single-mycars.php
<?php
/**
*
* single-mycars.php
*
* The single post template for mycars. Used when a single post is queried.
*
*/
get_header();
?>
<?php get_sidebar('top'); ?>
<?php
if (have_posts()) {
/* Display navigation to next/previous posts when applicable */
if (theme_get_option('theme_top_single_navigation')) {
theme_page_navigation(
array(
'next_link' => theme_get_previous_post_link('« %link'),
'prev_link' => theme_get_next_post_link('%link »')
)
);
}
while (have_posts()) {
the_post();
get_template_part('content', 'single');
/* Display comments */
if (theme_get_option('theme_allow_comments')) {
comments_template();
}
}
/* Display navigation to next/previous posts when applicable */
if (theme_get_option('theme_bottom_single_navigation')) {
theme_page_navigation(
array(
'next_link' => theme_get_previous_post_link('« %link'),
'prev_link' => theme_get_next_post_link('%link »')
)
);
}
} else {
theme_404_content();
}
?>
<?php get_sidebar('bottom'); ?>
<?php get_footer(); ?>