Community Forums › Forums › Archived Forums › Design Tips and Tricks › wp-property sidebar drops below content.
This topic is: not resolved
Tagged: Wp-property sidebar
- This topic has 1 reply, 2 voices, and was last updated 8 years, 8 months ago by Brad Dalton.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
August 18, 2015 at 11:27 am #162755slybugMember
I have been struggling with this for weeks now.
The page is any property page - http://lewisburgwvrealestate4you.com/search/102-south-west-ridge-road-snowshoe-26209/
everything is set to use a sidebar but on this page the sidebar is pushed to the bottom (the Gallery should be in the sidebar position)
This is the code of the property page:
<?php /** * Property Default Template for Single Property View * * Overwrite by creating your own in the theme directory called either: * property.php * or add the property type to the end to customize further, example: * property-building.php or property-floorplan.php, etc. * * By default the system will look for file with property type suffix first, * if none found, will default to: property.php * * Copyright 2010 Andy Potanin <[email protected]> * * @version 1.3 * @author Andy Potanin <[email protected]> * @package WP-Property */ // Uncomment to disable fancybox script being loaded on this page //wp_deregister_script('wpp-jquery-fancybox'); //wp_deregister_script('wpp-jquery-fancybox-css'); ?> <?php get_header(); ?> <?php the_post(); ?> <script type="text/javascript"> var map; var marker; var infowindow; jQuery(document).ready(function() { if(typeof jQuery.fn.fancybox == 'function') { jQuery("a.fancybox_image, .gallery-item a").fancybox({ 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200, 'overlayShow' : false }); } if(typeof google == 'object') { initialize_this_map(); } else { jQuery("#property_map").hide(); } }); function initialize_this_map() { <?php if($coords = WPP_F::get_coordinates()): ?> var myLatlng = new google.maps.LatLng(<?php echo $coords['latitude']; ?>,<?php echo $coords['longitude']; ?>); var myOptions = { zoom: <?php echo (!empty($wp_properties['configuration']['gm_zoom_level']) ? $wp_properties['configuration']['gm_zoom_level'] : 13); ?>, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("property_map"), myOptions); infowindow = new google.maps.InfoWindow({ content: '<?php echo WPP_F::google_maps_infobox($post); ?>', maxWidth: 500 }); marker = new google.maps.Marker({ position: myLatlng, map: map, title: '<?php echo addslashes($post->post_title); ?>', icon: '<?php echo apply_filters('wpp_supermap_marker', '', $post->ID); ?>' }); google.maps.event.addListener(infowindow, 'domready', function() { document.getElementById('infowindow').parentNode.style.overflow='hidden'; document.getElementById('infowindow').parentNode.parentNode.style.overflow='hidden'; }); setTimeout("infowindow.open(map,marker);",1000); <?php endif; ?> } </script> <div id="container" class="<?php wpp_css('property::container', array((!empty($post->property_type) ? $post->property_type . "_container" : ""))); ?>"> <div id="content" class="<?php wpp_css('property::content', "property_content"); ?>" role="main"> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="<?php wpp_css('property::title', "building_title_wrapper"); ?>"> <h1 class="property-title entry-title"><?php the_title(); ?></h1> <h3 class="entry-subtitle"><?php the_tagline(); ?></h3> </div> <div class="<?php wpp_css('property::entry_content', "entry-content"); ?>"> <div class="<?php wpp_css('property::the_content', "wpp_the_content"); ?>"><?php @the_content(); ?></div> <?php if ( empty($wp_properties['property_groups']) || $wp_properties['configuration']['property_overview']['sort_stats_by_groups'] != 'true' ) : ?> <ul id="property_stats" class="<?php wpp_css('property::property_stats', "property_stats overview_stats list"); ?>"> <?php @draw_stats("display=list&make_link=true"); ?> </ul> <?php else: ?> <?php @draw_stats("display=list&make_link=true"); ?> <?php endif; ?> <?php if(!empty($wp_properties['taxonomies'])) foreach($wp_properties['taxonomies'] as $tax_slug => $tax_data): ?> <?php if(get_features("type={$tax_slug}&format=count")): ?> <div class="<?php echo $tax_slug; ?>_list"> <h2><?php echo $tax_data['label']; ?></h2> <ul class="clearfix"> <?php get_features("type={$tax_slug}&format=list&links=true"); ?> </ul> </div> <?php endif; ?> <?php endforeach; ?> <?php if(is_array($wp_properties['property_meta'])): ?> <?php foreach($wp_properties['property_meta'] as $meta_slug => $meta_title): if(empty($post->$meta_slug) || $meta_slug == 'tagline') continue; ?> <h2><?php echo $meta_title; ?></h2> <p><?php echo do_shortcode(html_entity_decode($post->$meta_slug)); ?></p> <?php endforeach; ?> <?php endif; ?> <?php if(WPP_F::get_coordinates()): ?> <div id="property_map" class="<?php wpp_css('property::property_map'); ?>" style="width:100%; height:450px"></div> <?php endif; ?> <?php if($post->post_parent): ?> <a href="<?php echo $post->parent_link; ?>" class="<?php wpp_css('btn', "btn btn-return"); ?>"><?php _e('Return to building page.','wpp') ?></a> <?php endif; ?> </div><!-- .entry-content --> <?php comments_template(); ?> </div><!-- #post-## --> </div><!-- #content --> </div><!-- #container --> <?php // Primary property-type sidebar. if ( isset( $post->property_type ) && is_active_sidebar( "wpp_sidebar_" . $post->property_type ) ) : ?> <div id="primary" class="<?php wpp_css('property::primary', "widget-area wpp_sidebar_{$post->property_type}"); ?>" role="complementary"> <ul class="xoxo"> <?php dynamic_sidebar( "wpp_sidebar_" . $post->property_type ); ?> </ul> </div><!-- #primary .widget-area --> <?php endif; ?> <?php get_footer(); ?>
It seems that the calls to the side bar and content are different (in Genesis) that most templates because if I use the standard twenty 12 template it shows like it should. It is when I pop a Genesis theme on it messes up no matter what theme.
Any ideas?
http://lewisburgwvrealestate4you.com/search/102-south-west-ridge-road-snowshoe-26209/August 18, 2015 at 12:12 pm #162760Brad DaltonParticipant -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.