Elliott Wall
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Password protect blog/posts page?I would be perfectly happy with pass protecting the category page that shows the videos— it doesn’t have to be the main blog page, if that helps.
The index.php for my theme is:
<?php get_header(); if ( is_home() && !is_paged() ) { if ( savona_options( 'featured_slider_label' ) === true || savona_options( 'featured_links_label' ) === true ) { // Featured Slider, Carousel if ( savona_options( 'featured_slider_label' ) === true ) { get_template_part( 'templates/header/featured', 'slider' ); } // Featured Links, Banners if ( savona_options( 'featured_links_label' ) === true ) { get_template_part( 'templates/header/featured', 'links' ); } } } ?> <div class="main-content clear-fix<?php echo esc_attr(savona_options( 'general_content_width' )) === 'boxed' ? ' boxed-wrapper': ''; ?>" data-layout="<?php echo esc_attr( savona_page_layout() ); ?>" data-sidebar-sticky="<?php echo esc_attr( savona_options( 'general_sidebar_sticky' ) ); ?>"> <?php // Sidebar Left get_template_part( 'templates/sidebars/sidebar', 'left' ); // Blog Grid Wrapper get_template_part( 'templates/grid/blog', 'grid' ); // Sidebar Right get_template_part( 'templates/sidebars/sidebar', 'right' ); ?> </div> <?php get_footer(); ?>And if I understand correctly from the forum comment I mentioned above, I wanted to integrate that into this:
<?php /* Template Name: postspage */ ?> <?php get_header(); ?> <?php $lastposts = get_posts(); foreach($lastposts as $post) : setup_postdata($post); ?> <div class=”item”> <h2><?php the_title(); ?></h2> <p class=”date”><?php the_time(‘j.m.Y’) ?></p> <?php the_content(); ?> </div> <?php endforeach; ?> <?php get_sidebar(); ?> <?php include (TEMPLATEPATH . “/footer.php”); ?>Since it’s above my skill level and the pay grade of this gig to spend much further time on this, and it being a problem I’ll never have to face again, I probably can’t really be looking into how every hook works. So the results of my efforts thus far are probably pretty comedic— I have no idea what I’m doing! 🙂
<?php /* Template Name: postspage */ ?> <?php get_header(); if ( is_home() && !is_paged() ) { if ( savona_options( 'featured_slider_label' ) === true || savona_options( 'featured_links_label' ) === true ) { // Featured Slider, Carousel if ( savona_options( 'featured_slider_label' ) === true ) { get_template_part( 'templates/header/featured', 'slider' ); } // Featured Links, Banners if ( savona_options( 'featured_links_label' ) === true ) { get_template_part( 'templates/header/featured', 'links' ); } } } ?> <div class="main-content clear-fix<?php echo esc_attr(savona_options( 'general_content_width' )) === 'boxed' ? ' boxed-wrapper': ''; ?>" data-layout="<?php echo esc_attr( savona_page_layout() ); ?>" data-sidebar-sticky="<?php echo esc_attr( savona_options( 'general_sidebar_sticky' ) ); ?>"> <?php $lastposts = get_posts(); foreach($lastposts as $post) : setup_postdata($post); ?> <div class=”item”> <h2><?php the_title(); ?></h2> <p class=”date”><?php the_time(‘j.m.Y’) ?></p> <?php the_content(); ?> </div> <?php endforeach; ?> <?php // Sidebar Left get_template_part( 'templates/sidebars/sidebar', 'left' ); // Blog Grid Wrapper get_template_part( 'templates/grid/blog', 'grid' ); // Sidebar Right get_template_part( 'templates/sidebars/sidebar', 'right' ); ?> </div> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: Gallery sort order doesn't match attachment page navigationHi— I never solved it, but I did come to a satisfactory solution. I started using Jetpack carousel and it does respect your gallery page thumbnail sort order.
I also used this plugin http://ww.wp.xz.cn/plugins/media-category-library/ to change the upload date of my paintings to match the actual painting’s creation date and categorize them by year; I can’t remember if that helped the attachment page navigation issue or not since I may have just decided to use carousel anyway, but I’m pretty sure attachment pages are always arrayed according to post id.
I customized carousel a little bit and I’m really pleased at how it looks: http://www.elliottwall.com/contents/paintings/
Forum: Themes and Templates
In reply to: WPfolio drop down menu behaving erraticallyI figured it out— there was a margin in between the menu menu item and the secondary/drop down ones, but I couldn’t find the selector for it— it in wp-folio/css/superfish.css and I think the line I edited was:
background-position: -10px -100px; /* arrow hovers for modern browsers*/
… the background-position being set to something else.
Forum: Themes and Templates
In reply to: WPfolio drop down menu behaving erratically(Sorry— I thought it would show up somehow…)
About 50% of the time the drop down menu disappears upon hover (only the menu item Weblog has a drop down menu). I’ve noticed that if the fade effect doesn’t work when hovering over Weblog then the drop down menu won’t work upon hover. If upon hovering on Weblog the drop down *does* fade in though then the menu won’t disappear.
[ Please do not bump, that’s not permitted here. ]