Forum Replies Created
-
AuthorPosts
-
KathleenCDMember
Thanks Victor,
I found the solution just after I sent this.May 4, 2015 at 6:01 am in reply to: Background Image 'Jumps' on when viewing on phone – Sixteen Nine #150086KathleenCDMemberStill not able to resolve this. Would really appreciate some guidance.
Thanks
KathyApril 29, 2015 at 11:42 am in reply to: Background Image 'Jumps' on when viewing on phone – Sixteen Nine #149525KathleenCDMemberStill haven't solved the problem of jumping script - I need help with the instructions provided previously to "find the ‘enqueue’ with ‘backstretch in them and commend them out"
Here's the code... what do I do?
//* Enqueue Backstretch script and prepare images for loading
add_action( ‘wp_enqueue_scripts’, ‘sixteen_nine_enqueue_scripts’ );
function sixteen_nine_enqueue_scripts() {wp_enqueue_script( ‘sixteen-nine-responsive-menu’, get_bloginfo( ‘stylesheet_directory’ ) . ‘/js/responsive-menu.js’, array( ‘jquery’ ), ‘1.0.0’ );
$image = get_option( ‘sixteen-nine-backstretch-image’, sprintf( ‘%s/images/bg.jpg’, get_stylesheet_directory_uri() ) );
//* Load scripts only if custom backstretch image is being used
if ( ! empty( $image ) ) {wp_enqueue_script( ‘sixteen-nine-backstretch’, get_bloginfo( ‘stylesheet_directory’ ) . ‘/js/backstretch.js’, array( ‘jquery’ ), ‘1.0.0’ );
wp_enqueue_script( ‘sixteen-nine-backstretch-set’, get_bloginfo(‘stylesheet_directory’).’/js/backstretch-set.js’ , array( ‘jquery’, ‘sixteen-nine-backstretch’ ), ‘1.0.0’ );wp_localize_script( ‘sixteen-nine-backstretch-set’, ‘BackStretchImg’, array( ‘src’ => str_replace( ‘http:’, ”, $image ) ) );
April 8, 2015 at 7:42 pm in reply to: Background Image 'Jumps' on when viewing on phone – Sixteen Nine #147147KathleenCDMemberWhew! corrected the error. Still need a little more instruction on how to:
'find the ‘enqueue’ with ‘backstretch in them and commend them out' - I've pasted the relevant code above
Since I've already crashed my site once I'm obviously doing something wrong. Your help would be very much appreciated.
April 8, 2015 at 6:56 pm in reply to: Background Image 'Jumps' on when viewing on phone – Sixteen Nine #147140KathleenCDMemberyikes! Not sure what I've done. I'm getting the following error now. I've copied and pasted form a clean version but it didn't solve the problem. How do I fix?
Parse error: syntax error, unexpected '*' in /home/vresearch/public_html/wp-content/themes/sixteen-nine-pro/functions.php on line 35
Tks.
April 8, 2015 at 6:41 pm in reply to: Background Image 'Jumps' on when viewing on phone – Sixteen Nine #147138KathleenCDMemberIs this the section of code you mean? If so can you tell me how to correctly comment it out?
//* Enqueue Backstretch script and prepare images for loading
add_action( 'wp_enqueue_scripts', 'sixteen_nine_enqueue_scripts' );
function sixteen_nine_enqueue_scripts() {wp_enqueue_script( 'sixteen-nine-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
$image = get_option( 'sixteen-nine-backstretch-image', sprintf( '%s/images/bg.jpg', get_stylesheet_directory_uri() ) );
//* Load scripts only if custom backstretch image is being used
if ( ! empty( $image ) ) {wp_enqueue_script( 'sixteen-nine-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' );
wp_enqueue_script( 'sixteen-nine-backstretch-set', get_bloginfo('stylesheet_directory').'/js/backstretch-set.js' , array( 'jquery', 'sixteen-nine-backstretch' ), '1.0.0' );wp_localize_script( 'sixteen-nine-backstretch-set', 'BackStretchImg', array( 'src' => str_replace( 'http:', '', $image ) ) );
KathleenCDMemberD'OH!!!! Just realized it only appears when I'm logged in to admin area and not visible otherwise. Sorry about that!
March 23, 2015 at 8:04 am in reply to: Sixteen Nine Theme – Center site title above blog Image #145319KathleenCDMemberThank you, this worked perfectly. But I've decided to get rid of the title area all together. I managed to do that by adding this code:
//* Remove the site title
remove_action( 'genesis_site_title', 'genesis_seo_site_title' );But now I have 2 issues :
1. there is now a big space at the top - how do I remove that?
2. when I try scrolling down the page I stay in one place and the page seems to roll up at the top and disappear. Instead I want to be able to just scroll down the page.Any help would be appreciated. Thanks
KathleenCDMemberYou're a rock star!! Worked like a charm. Thank you both for your help.
Kathy
KathleenCDMemberD'oh!!! Thanks Jan.
There's still a slight white border on the left of the excerpt box. It appears to me like the template is a few px too wide. - extending slightly beyond the navigation bar. Can you see what I mean?
KathleenCDMemberThank you so much! Worked perfectly - after I realized there was a 'p' missing in the DIV wrap code you provided 🙂
Great!
KathleenFebruary 6, 2014 at 11:53 am in reply to: Remove extra spacing between blog excerpts – lifestyle Pro #88971KathleenCDMemberWorked like a charm! Thanks for the quick response Andrea.
KathleenCDMemberI'm thinking it's this section of code that I need to alter:
I did try just changing this part but it didn't work.
<div id="home-slider">
<div id="home-welcome">function agency_home_welcome_helper() { if ( is_active_sidebar( 'home-slider' ) ) { echo '<div id="home-slider">'; dynamic_sidebar( 'home-slider' ); echo '</div><!-- end #home-slider -->'; } if ( is_active_sidebar( 'home-welcome' ) ) { echo '<div id="home-welcome">'; dynamic_sidebar( 'home-welcome' ); echo '</div><!-- end #home-welcome -->'; }
KathleenCDMemberThanks Brad,
I had a look at the link but I'm not really clear on what I need to do - can you dumb down the instructions a little for me? 🙂KathleenCDMemberYou rock! It works perfectly. Yeahhhh..
Thanks so much Dave.
KathleenKathleenCDMemberPerfect!!! Thank you so much for helping me with this Doak.
KathleenCDMemberWould I find this in style.css? I located lines 989 & 697 as directed but they do not correspond to padding / margins.
Can you dumb it down a little for me 🙂
Tks
KathleenCDMemberThanks Brad. Worked like a charm for the post excerpt!
Still working on commenting out the grid based on the instructions received in a separate post on the topic.
KathleenCDMemberI made the change as follows but got a syntax error. Any idea where I went wrong?
}
}
/*
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'child_grid_loop_helper' );
/** Add support for Genesis Grid Loop **/
function child_grid_loop_helper() {if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 1,
'feature_image_size' => 'feature',
'feature_image_class' => 'align none post-image',
'feature_content_limit' => 300,
'grid_image_size' => 'grid',
'grid_image_class' => 'align none post-image',
'grid_content_limit' => 0,
'more' => __( 'Continue reading...', 'genesis' ),
'posts_per_page' => 5,
) );}
else {
genesis_standard_loop();
}}
*/genesis();
KathleenCDMemberDisregard... I just saw the */ at the bottom. sorry!!
-
AuthorPosts