Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    Thread Starter ninverso

    (@ninverso)

    thanks for the links.

    I made a new file called single-event.php and place in my theme folder. I confirmed that singles event posts are using this template through the Reveal plugin.

    I copied the code from single.php to single-event.php, but not sure what to modify. I’ve never edited php before.

    Do you see any reference in your code to a sidebar?

    Thread Starter ninverso

    (@ninverso)

    yes and tried changing a bit but no luck.

    <?php get_header(); ?>
    	<?php
    	if(get_post_meta($post->ID, 'pyre_full_width', true) == 'yes') {
    		$content_css = 'width:100%';
    		$sidebar_css = 'display:none';
    	}
    	elseif(get_post_meta($post->ID, 'pyre_sidebar_position', true) == 'left') {
    		$content_css = 'float:right;';
    		$sidebar_css = 'float:left;';
    	} elseif(get_post_meta($post->ID, 'pyre_sidebar_position', true) == 'right') {
    		$content_css = 'float:right;';
    		$sidebar_css = 'float:left;';
    	} elseif(get_post_meta($post->ID, 'pyre_sidebar_position', true) == 'default') {
    		if($data['default_sidebar_pos'] == 'Left') {
    			$content_css = 'float:right;';
    			$sidebar_css = 'float:left;';
    		} elseif($data['default_sidebar_pos'] == 'Right') {
    			$content_css = 'float:right;';
    			$sidebar_css = 'float:left;';
    		}
    	}
    	?>
    	<div id="content" style="<?php echo $content_css; ?>">
    		<?php wp_reset_query(); ?>
    		<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
    		<?php query_posts($query_string.'&paged='.$paged); ?>
    		<?php if(!$data['blog_pn_nav']): ?>
    		<div class="single-navigation clearfix">
    			<?php previous_post_link('%link', __('Previous', 'Avada')); ?>
    			<?php next_post_link('%link', __('Next', 'Avada')); ?>
    		</div>
    		<?php endif; ?>
    		<?php if(have_posts()): the_post(); ?>
    		<div id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
    			<?php
    			global $data;
    			if((!$data['legacy_posts_slideshow'] && !$data['posts_slideshow']) && get_post_meta($post->ID, 'pyre_video', true)): ?>

    You don’t need to edit any code to switch the sidebar from left to right.

    This code indicates there’s an option to float the sidebar left or right in the WP admin area.

    Thread Starter ninverso

    (@ninverso)

    #content { float:right; }
    #sidebar { float:left; }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sidebar Left’ is closed to new replies.