Forum Replies Created
-
AuthorPosts
-
kiralytoolMember
Any thoughts??
Also, I got everything almost fixed...here my featured images were disassociated with my pages. I am still having issues getting the page titles to display.
When there is not an image...the page title will display only when you hover over where it is supposed to be shown. However, when there is an image, no page title displays at all.
I am out of ideas. My code matches exactly with no other changes. Any help?
kiralytoolMemberThis solution led me to this error:
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/content/p3nexnas03/96/2062196/html/wp-content/themes/agency-pro/functions.php on line 83
Currently the site is not live and I was building it under GoDaddy...hopefully their support team can fix this issue for me without losing all my work.
Here's what I removed:
//* Enqueue Backstretch script and prepare images for loading
add_action( 'wp_enqueue_scripts', 'agency_enqueue_backstretch_scripts' );
function agency_enqueue_backstretch_scripts() {//* Load scripts only if custom background is being used
if ( ! get_background_image() )
return;wp_enqueue_script( 'agency-pro-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' );
wp_enqueue_script( 'agency-pro-backstretch-set', get_bloginfo( 'stylesheet_directory' ).'/js/backstretch-set.js' , array( 'jquery', 'agency-pro-backstretch' ), '1.0.0' );wp_localize_script( 'agency-pro-backstretch-set', 'BackStretchImg', array( 'src' => str_replace( 'http:', '', get_background_image() ) ) );
}
----
//* Add support for custom background
add_theme_support( 'custom-background', array( 'wp-head-callback' => 'agency_background_callback' ) );//* Add custom background callback for background color
function agency_background_callback() {if ( ! get_background_color() )
return;printf( '<style>body { background-color: #%s !important; }</style>' . "\n", get_background_color() );
}
And here's what I replaced it with (per the previous posts):
`/** Add support for custom background */
add_theme_support( ‘custom-background’ );I received the error and have been locked out since hitting update.
-
AuthorPosts