link for the post: https://onlineeee.com/cinderella-full-movie-2015/
I need to insert the image (https://onlineeee.com/wp-content/uploads/2015/06/download-movie-button.png) under the featured image as shown in this link: https://imgur.com/GW2LujW
Here is the code for singlepost.php
<?php
/**
* Template for single post pages
*
* @since BlogCentral 1.0.0
*
* @package BlogCentral
* @subpackage single.php
*/
// Display the header and call wp_head().
get_header();
/**
* If option is set to override the post landing page options, then use options set for
* single post page.
*/
if ( isset( $blogcentral_opts[‘posts_single’][‘override_landing’] ) ) {
$posts_opts = $blogcentral_opts[‘posts_single’];
} else {
$posts_opts = $blogcentral_opts[‘posts_landing’];
}
// Is a single post, so cols will not be more than 1.
$posts_opts[‘cols’] = ‘1’;
// If using post landing page options, do not use its title or tagline for single post pages.
$posts_opts[‘title_text’] = ”;
$posts_opts[‘tagline_text’] = ”;
// Get saved theme options.
$posts_general = isset( $blogcentral_opts[‘posts_general’] ) ? $blogcentral_opts[‘posts_general’] : array();
$blogcentral_layout_opts = array_merge( (array)$posts_opts, (array)$posts_general );
// Call function to construct the common <div> wrapper.
$blogcentral_wrapper = blogcentral_common_template_wrapper( $blogcentral_layout_opts );
/**
* Template that constructs and outputs the beginning
// Dynamic style for main area.
$main_style = ”;
$main_class = ”;
if ( empty( $blogcentral_opts[‘show_sidebar’] ) ) {
$main_style = ‘ style=”width:100%;” ‘;
$main_class = ‘ class=”no-sidebar”‘;
} else {
$main_class = ‘ class=”show-sidebar”‘;
}
if ( isset( $blogcentral_opts[‘show_color_chooser’] ) ) {
// Display the dynamic color chooser.
blogcentral_output_color_chooser();
}
if ( have_posts() ) {
the_post();
// Rewind the posts
rewind_posts();
$page_header_title = get_the_title();
} else {
$page_header_title = __( ‘Single Blog Page’, BLOGCENTRAL_TXT_DOMAIN );
}
// Output the precontent area.
blogcentral_output_precontent_frag( $blogcentral_opts, $page_header_title );
?>
<div id=”main-content”<?php echo $main_class;?>>
<div<?php echo $main_style; ?> id=”main-area”>
<div class=”gutter”>
<?php if ( ! isset( $blogcentral_opts[“page_header”] ) ) : ?>
<header class=”page-header”>
<h1 class=”page-title”><?php echo $page_header_title; ?></h1>
</header>
<?php endif; ?>
<?php
if( have_posts() ) {
// Reset variables
$blogcentral_img_wrap_class = ”;
$blogcentral_media_wrap_style = “style='”;
$blogcentral_meta_wrap_class = ”;
$blogcentral_meta_wrap_style = “style='”;
$blogcentral_extra_li_class = ”;
$extra_li_attrs = ”;
$blogcentral_media = ”;
echo ‘<div id=”main-posts-cont”>’;
// Output the wrapping <div> and beginning
the_post();
// Get post meta
$post_id = $wp_query->post->ID;
$blogcentral_post_meta = ”;
global $fourbzcore_plugin;
if ( isset( $fourbzcore_plugin ) && method_exists( $fourbzcore_plugin, ‘get_post_meta’ ) ) {
$blogcentral_post_meta = $fourbzcore_plugin->get_post_meta( $post_id );
}
$blogcentral_post_opts = array_merge( $blogcentral_layout_opts, (array)$blogcentral_post_meta );
$format = get_post_format();
if ( $format && ‘status’ !== $format && ‘chat’ !== $format && ‘aside’ !== $format ) {
$format = ‘-‘ . $format;
} else {
$format = ”;
}
// Html fragments for classes and styles to be added to each post item.
$blogcentral_post_opts = blogcentral_construct_inner_classes_styles( $blogcentral_post_opts );
// Is a single post, so need to show all post information.
$blogcentral_layout_opts[‘show_title’] = false;
$blogcentral_layout_opts[‘show_content’] = $blogcentral_layout_opts[‘show_author’] =
$blogcentral_layout_opts[‘show_date’] = $blogcentral_layout_opts[‘show_categories’] =
$blogcentral_layout_opts[‘show_tags’] = $blogcentral_layout_opts[‘show_social’] =
$blogcentral_layout_opts[‘show_stats’] = $blogcentral_layout_opts[‘show_icons’] = true;
// Get the default featured image if has one.
$blogcentral_thumb = ”;
if ( has_post_thumbnail() ) :
$blogcentral_thumb = get_the_post_thumbnail( $post_id, ‘full’ );
endif;
/**
* Template for post format content.
*/
include( locate_template( ‘content’ . $format . ‘.php’, false, false ) );
// Output matching ending tags for the <div> wrapper and
// Display author bio and contact information, if provided.
if ( get_the_author_meta( ‘description’ ) ) {
get_template_part( ‘author-bio’ );
}
if ( is_active_sidebar( ‘single-post-after-widget’ ) ) {
echo ‘<div id=”single-post-after-widget”>’;
dynamic_sidebar( ‘single-post-after-widget’ );
echo ‘</div>’;
}// End if dynamic sidebar.
// Display comments.
comments_template( ”, true );
// Output posts navigation.
blogcentral_post_nav();
} //End if have_posts()
?>
</div><!– End .gutter –>
</div><!– End #main-area –><?php //no space here or will break layout ?><?php
if ( isset( $blogcentral_opts[‘show_sidebar’] ) ) {
get_sidebar();
}
get_footer();
When I enter a post on my wordpress site everything is displayed correctly when but when I hit the refresh button the main image in the post becomes centered covering another div element containing a navigation image.
Here is the code:
<div id="post-<?php the_ID(); ?>" <?php post_class('primary'); ?>>
<div style="float:right; margin-right:16px;"><?php next_post(' %', '<img src="https://www.website.com/next2.jpg">', 'no'); ?></div>
<div style="float:right; margin-right:5px;"><?php previous_post(' %', '<img src="https://www.website.com//prev2.jpg">', 'no'); ?></div>
<div align="center"><img src="https://www.website.com/image1.jpg"> </div>
<?php if(!atom()->post->getMeta('hide_title')): ?>
<h2 class="title"><?php atom()->post->Title(); ?></h2>
<?php endif; ?>
<div class="post-content clear-block">
<div style="float:left; margin-top:100px;"><?php previous_post(' %', '<img src="https://www.website.com//Navigationleft.jpg">', 'no'); ?></div>
<div style="float:right; margin-top:100px; margin-left:3px;"><?php next_post(' %', '<img src="https://www.website.com/Navigationright.jpg">', 'no'); ?></div>
<div style="float:right;"><img src="https://www.website.com/image2.jpg"></div>
<?php the_content(); ?>
</div>
[Please use the code buttons when posting code]
I really need input on what I’ve done wrong.
Here is url:Humourplanet
Thanks.
]]>Here is my code:
[Code moderated as per the Forum Rules. Please use the pastebin]
Any help would be greatly appreciated.
Thank You -W
]]>Tried several times but my sidebar keeps dropping to bottom of page. Not sure if not enough room or have to code differently. I am new to this obviously and could use some help. Site is: tpjmagazine.net
Here is my code for singlepost.php THANK YOU!!!
[Code moderated as per the Forum Rules. Please use the pastebin]
]]>I am using version 3.1 of wordpress and a free theme called Blissful Blog and the site is www.julierandle.com
]]>All I can see in the singlepost.php file is
<?php the_content(‘Find out more… »’); ?>
where the content of each post is displayed.
So far, I’ve managed to manipulate the end of posts and their excerpts using custom fields, but I’d now like to know how I can start inserting custom field data in to the posts themselves.
]]>Second problem is search form, I wont to display search box and search button in the same line (vertical), now search button is under search box
I use default theme…
Please help
]]>