Forum Replies Created
-
AuthorPosts
-
February 23, 2015 at 12:22 pm in reply to: enable SSL load for background images in Parallax Pro #141895brightlaunchMember
I had the same problem in Minimum Pro... the page_landing.php code includes on line 34 the following code:
wp_localize_script( 'minimum-backstretch-set', 'BackStretchImg', array( 'src' => get_background_image() ) );which creates the following output on the page:
<script type='text/javascript'>
/* <![CDATA[ */
var BackStretchImg = {"src":"http:\/\/yourdomain.com\/wp-content\/uploads\/bg.jpg"};
/* ]]> */
</script>So I replaced line 34 with this (notice how I removed the "http:" that created the issue):
echo '<script type="text/javascript">var BackStretchImg = {"src":"\/\/yourdomain.com\/wp-content\/uploads\/bg.jpg"};</script>';When you upload page_landing.php, it now generates the following HTML:
<script type="text/javascript">var BackStretchImg = {"src":"\/\/yourdomain.com\/wp-content\/uploads\/bg.jpg"};</script>Problem fixed!
brightlaunchMemberPerfect, worked like a charm!
brightlaunchMemberThanks @nutsandbolts.
1. Site is hosted through yours truly websynthesis.
2. Using W3 Total Cache. Cleared cache, deactivated plugin, reloaded http://skinnychef.com/post-sitemap1.xml = still same error.There's actually another error message showing up for 400ms before the other generic message shows:
XML Parsin Error: no element found
Location: http://skinnychef.com/post-sitemap1.xml
Line Number 1, Column 1:^
February 18, 2013 at 10:21 am in reply to: Why is my if (!in_category) statement not working? #21014brightlaunchMemberOk, I figured it out.... needed || instead of &&:
add_action('wp_print_styles', 'custom_show_zlrecipe');
function custom_show_zlrecipe() {
if (is_category() || !in_category (array ('11','284','285','288','289','291','292','293','294','295','296','270','273','274','275','279','280','282','283'))) {
remove_filter('wp_head', 'amd_zlrecipe_process_head');
}
}brightlaunchMemberThanks cdils... I realized the missing colon! Just revised my post... it's mostly working, but the scripts still show up on the category pages itself… I only want it to show for the posts in those categories…
brightlaunchMemberadd_action('wp_print_styles', 'custom_show_zlrecipe');
function custom_show_zlrecipe() {
if (!in_category (array ('11','284','285','288','289','291','292','293','294','295','296','270','273','274','275','279','280','282','283'))) {
remove_filter('wp_head', 'amd_zlrecipe_process_head');
}
}
accomplished most of what I needed. But, the scripts still show up on those category pages itself... I only want it to show for the posts in those categories...
-
AuthorPosts