wayneconnor
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Sliding Door] Blank homepage on Sliding DoorYou seem to have fixed it?
Forum: Themes and Templates
In reply to: custom header for different pagesLatest version adds custom image headers that should do this.
Forum: Themes and Templates
In reply to: New Update to Sliding Door Broke SiteThat was a bug that the centre column went wide not a feature!
If you want to make that centre column wide again simply open the style.css file and remove this line:
#content {
width: 500px;
}Wayne
You should be able to choose which pages appear in the sliding doors and menus using the Appearance/Menus page in the admin of wordpress.
Sliding Navigation are the pages in the sliding doors
Primary Navigation are the drop-downs.This is discussed on the sliding door support forum http://mac-host.com/support
Forum: Themes and Templates
In reply to: sliding door theme – floating problemCheck if there is a plugin that is maybe causing it.
looks fine to me can you post a screenshot of the problem?
Forum: Themes and Templates
In reply to: [Sliding Door] sliding door with post thumbnailSound great Bernhard – I’d love to see the adjustable width code and might incorporate it in.
Wayne
Forum: Themes and Templates
In reply to: THEMES: how to customize Header TextAmbika – if you read the instructions they will answer this question for you.
Sliding doors is not like a usual wordpress theme – it needs a little setting up.
You have done step one – assigning posts to your sliding doors.
You have not done step two which is to upload a picture for each slider. You do this via ‘Featured Image’ in each post.
the code for my walker is this:
class My_Walker extends Walker_Nav_Menu { var $item_count = 0; function end_el(&$output, $item, $depth) { $output .= ""; } /** * @param string $output Passed by reference. Used to append additional content. * @param object $item Menu item data object. * @param int $depth Depth of menu item. Used for padding. * @param int $current_page Menu item ID. * @param object $args */ function start_el(&$output, $item, $depth, $args) { global $wp_query,$item_count; $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; $class_names = $value = ''; $classes = empty( $item->classes ) ? array() : (array) $item->classes; $classes[] = 'menu-item-' . $item->ID; if($item_count <= 5){ if(isset($item->object_id)) { <strong>$thumbnailid = (int)$item->object_id; $thumbnail = get_the_post_thumbnail_url( $thumbnailid );</strong> } else { $thumbnail = 'http://mac-host.com/slidingdoor/slidingdoor.jpg'; } $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) ); $class_names = ' class="bk'.(int)$item_count.'" '; $output .= $indent . '<li id="menu-item-'. $item->ID . '"' . $value . $class_names .'>'; $attributes = ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : ''; $item_output = $args->before; <strong> $item_output = '<a' . $attributes .' style="background: url(\'' . $thumbnail. '\') repeat scroll 0%;">';</strong> $item_output .= apply_filters( 'the_title', $item->title, $item->ID ); $item_output .= '</a>'; $item_output .= "</li>\n"; $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args ); } if($item_count == 6){ if(isset($item->object_id)) { $thumbnailid = (int)$item->object_id; $thumbnail = get_the_post_thumbnail_url( $thumbnailid ); } else { $thumbnail = 'http://mac-host.com/slidingdoor/slidingdoor.jpg'; } $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) ); $class_names = ' class="bk'.(int)$item_count.'" '; $output .= $indent . '<li class="bk6" id="menu-item-'. $item->ID . '"' . $value . $class_names .'>'; $attributes = ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : ''; $item_output = $args->before; $item_output = '<a' . $attributes .' style="background: url(\'' . $thumbnail. '\') repeat scroll 0%;">'; $item_output .= apply_filters( 'the_title', $item->title, $item->ID ); $item_output .= '</a>'; $item_output .= "</li>\n"; $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args ); } $item_count ++; } }PS
the code for the header is this:
<div id="imageMenu"> <?php $walker = new My_Walker; wp_nav_menu( array( 'theme_location' => 'custom-sliding-menu', 'fallback_cb' => 'no_sliding_menu', 'container' => '', 'container_class' =>'', 'container_id' =>'', 'menu_class' =>'', 'menu_id' =>'', 'depth' => '1', 'walker' => $walker ) ); ?> </div>Forum: Themes and Templates
In reply to: [Sliding Door] sliding door with post thumbnailYep thanks,
I’ve upgraded it to use featured image. It was not as simple as you suggested, lots of custom code needed, that’s why it’s taken a while.
WayneForum: Themes and Templates
In reply to: THEMES: how to customize Header TextJust make the headings in photoshop and upload them via features image in your wordpress post.
Forum: Themes and Templates
In reply to: Sliding Door version 2.3You have heaps of 3rd party plugins – one of them will be clashing, try disabling them then re-enable one by one.
Forum: Fixing WordPress
In reply to: Files for Sliding door 2.0 or 2.1It’s now available on wordpress.org