Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

single.php WordPress

I use Nimble theme.

I'd like to have my post pages (single.php) just like a themed page, on my site

Post:

Theme: http://www.mariamanuela.com.br/blog-2/ (Look top and sidebar)

Postpage: http://www.mariamanuela.com.br/investigue-os-conflitos/

I undestand I have to change single.php

But I dont know what to change to accept those configurations, widgets, etc.

Answers (5)

2013-11-12

Nirmal answers:

Steps:
1. Take backup of your single.php file.
2. Copy the whole code of page.php and paste the code inside single.php.

2013-11-12

Navjot Singh answers:

Can you PM me your login details? I can make the change for you.

2013-11-12

Arnav Joy answers:

can you show us single.php file and page-template-dt-homepage-blog-php file


business_ideas comments:

single.php



<?php dt_storage('have_sidebar', true); ?>

<?php get_header(); ?>

<?php get_template_part('top-bg'); ?>

<?php get_template_part('parallax'); ?>

<div id="wrapper">

<?php get_template_part('nav'); ?>

<div id="container">

<?php if( have_posts() ): while( have_posts() ): the_post(); ?>

<?php if ( get_the_title() ) : ?>

<h1><?php the_title(); ?></h1>

<?php endif; ?>

<?php
if( of_get_option('misc-show_next_prev_post') ) {
dt_get_next_prev_post();
}
?>
<?php if( !post_password_required() ): ?>

<div class="hr hr-wide gap-small"></div>

<?php
get_template_part('single', 'dt_blog');

else: ?>
<div class="hr hr-wide gap-small"></div>
<?php echo get_the_password_form(); ?>
<?php endif;// password protection

endwhile;
endif;
?>

</div>

<?php dt_widget_area( 'sidebar', null, 'sidebar_3' ); ?>

</div>

<?php get_footer(); ?>


business_ideas comments:

dt-obo-homepage-blog.php

<?php
/* Template Name: 18. OneByOne Slider with blog */

dt_storage( 'is_homepage', ( dt_get_paged_var() <= 1 ) );
dt_storage( 'is_blog', true );
dt_storage( 'have_obo_slider', true );
dt_storage( 'have_sidebar', true );

do_action( 'dt_layout_before_header-blog' );

get_header();
?>

<?php get_template_part( 'top-bg' ); ?>

<?php get_template_part( 'nav' ); ?>

<?php if ( dt_storage('is_homepage') ) : ?>
<section id="slide" class="byOne" style="height: ;"></section>
<?php endif; ?>

<div id="wrapper">

<div id="container"<?php echo dt_get_container_class(); ?>>

<?php
if ( have_posts() ) {
while ( have_posts() ) { the_post();
do_action( 'dt_layout_before_loop', 'dt-blog' );
global $DT_QUERY;
if ( $DT_QUERY->have_posts() ) {
while ( $DT_QUERY->have_posts() ) {
$DT_QUERY->the_post();
get_template_part( 'content', get_post_format() );
}

if ( function_exists( 'wp_pagenavi' ) ) {
wp_pagenavi( $DT_QUERY );
}
}
wp_reset_postdata();
}
}
?>

</div>

<?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>


Arnav Joy comments:

please try this

<?php dt_storage('have_sidebar', true); ?>

<?php get_header(); ?>

<?php get_template_part('top-bg'); ?>

<?php get_template_part('parallax'); ?>


<section id="slide" class="byOne" style="height: ;"></section>


<div id="wrapper">

<?php get_template_part('nav'); ?>

<div id="container">

<?php if( have_posts() ): while( have_posts() ): the_post(); ?>

<?php if ( get_the_title() ) : ?>

<h1><?php the_title(); ?></h1>

<?php endif; ?>

<?php
if( of_get_option('misc-show_next_prev_post') ) {
dt_get_next_prev_post();
}
?>
<?php if( !post_password_required() ): ?>

<div class="hr hr-wide gap-small"></div>

<?php
get_template_part('single', 'dt_blog');

else: ?>
<div class="hr hr-wide gap-small"></div>
<?php echo get_the_password_form(); ?>
<?php endif;// password protection

endwhile;
endif;
?>

</div>

<?php //dt_widget_area( 'sidebar', null, 'sidebar_3' ); ?>

<?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>


business_ideas comments:

Created a big white space at the top