Forum Replies Created
-
AuthorPosts
-
futurewebbossMember
The space directly above the enroll button and the three widgets. The spacing between the three widgets is fine.
Thank you Anita
futurewebbossMemberHi Anita,
Thank you. I'm specifically referring to the spacing above the enroll section. Will you code work for this?
Thanks again.
DanfuturewebbossMemberThanks Anita. Still a work in progress. Appreciate you taking a look.
futurewebbossMemberThe after thought of course is that the Vista machine is using an old version of Chrome where as my Windows 7 machine is using the latest version of Chrome and Firefox. So my only hypothesis is that there's a different way the current browser environment handles SSL requests but not sure my level of expertise can take this on. Thoughts?
futurewebbossMemberI used the sample code by the way from the Academy theme setup instructions.
futurewebbossMemberHi Brad,
I added the template and took the pricing table CSS from the Academy theme and then added the page template and the css to Altitude theme but I don't get the same look on my altitude theme as what is shown on the Academy theme - Here's the test url.
not sure what to do and if you have time to give any other guidance that would be great. If not certainly understand.
http://filmmakersvillage.com/pricing-test/Dan
futurewebbossMemberThanks Brad. I'll give it a shot and let you know. Appreciate it.
DanfuturewebbossMemberThat is nice. Thanks for sharing David.
futurewebbossMemberJust want to check if there's peace in the valley between woo commerce and genesis connect.
I'm still running genesis connect 09.9 and woo commerce 3.2.6.
Woo is asking to be updated to 3.3.2 and genesis connect to .9.10.
Is all safe now?Thanks,
DanfuturewebbossMemberWould work better if I could spell
futurewebbossMemberOk I put the code (below) in Genesis wp_head Simple hooks and set to execute php at the site dennis-kelly.com and it appears to work flawlessly
-------------------------------------------------------------
<?php
if ( is_home() ) {
?>
<script>
var app_url = "https://customers.mappaquerque.com/m/masterkelly/?appcode=masterkelly";
app_url = app_url + "&goBack=true";
var ba_is_mobile_browser = (navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|vodafone|o2|pocket|kindle|mobile|pda|psp|treo)/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/operamini/i)||navigator.userAgent.match(/blackberry/i)||navigator.userAgent.match(/(palmos|palm|hiptop|avantgo|plucker|xiino|blazer|elaine)/i)||navigator.userAgent.match(/(windowsce; ppc;|windows ce; smartphone;|windows ce;iemobile)/i)||navigator.userAgent.match(/android/i))&&!navigator.userAgent.match(/iPad/i);var queryParams = getQueryParams(document.location.search);
if(queryParams && (queryParams.setDesktopCookie == 1)) {
//if there's a query param to set cookie set it (since we can't set them on another domain for this domain)
setCookie("viewmode","desktop");
}var ba_desktop_cookie = getCookie("viewmode");
var ba_is_mobile = ba_is_mobile_browser && (ba_desktop_cookie != "desktop");function redirectToApp() {
window.location = app_url;
}function getQueryParams(qs) {
qs = qs.split("+").join(" ");var params = {}, tokens,
re = /[?&]?([^=]+)=([^&]*)/g;while (tokens = re.exec(qs)) {
params[decodeURIComponent(tokens[1])]
= decodeURIComponent(tokens[2]);
}return params;
}function getCookie(name) {
var re = new RegExp(name + "=([^;]+)");
var value = re.exec(document.cookie);
return (value != null) ? unescape(value[1]) : null;
}function setCookie(key,value) {
document.cookie = key+"="+value;
}if (ba_is_mobile) {
var viewmodeCookie = getCookie("viewmode");
if(viewmodeCookie == null) {
//if it's mobile and there's no cookie set, redirect to mobile site
redirectToApp();
}
}//create the html elements on the page
var ba_view_elem = document.createElement("SPAN");
var ba_view_text = document.createTextNode("View in ");
ba_view_elem.appendChild(ba_view_text);var ba_mobile_elem = document.createElement("A");
ba_mobile_elem.setAttribute("onclick", "redirectToApp()");
ba_mobile_elem.setAttribute("href", "javascript:;");
var ba_mobile_text = document.createTextNode("Mobile");
ba_mobile_elem.appendChild(ba_mobile_text);
ba_view_elem.appendChild(ba_mobile_elem);var ba_view_text = document.createTextNode(" | ");
ba_view_elem.appendChild(ba_view_text);var ba_desktop_elem = document.createElement("B");
var ba_desktop_text = document.createTextNode("Desktop");
ba_desktop_elem.appendChild(ba_desktop_text);ba_view_elem.appendChild(ba_desktop_elem);
var ba_curTag = document.currentScript
var ba_parent_elem = ba_curTag.parentNode;
ba_parent_elem.insertBefore(ba_view_elem, ba_curTag);
</script>
<?php
}
?>futurewebbossMemberIndex.php is obviously not the place for this code. I added the code to genesis simple hooks to execute on the before closing head and am testing that now. You guys were probably assuming such and I'm sorry for wasting anyones time here. Will let you know how it works out.
futurewebbossMemberHi Victor,
Still getting Fatal error: Call to undefined function is_home() in /home/hiptolik/public_html/index.php on line 2
Should I be putting this somewhere else besides index.php?
HEre's the code
______________________________________________________________________________
<?php
if ( is_home() ) {
?>
<script>
var app_url = "https://customers.mappaquerque.com/m/masterkelly/?appcode=masterkelly";
app_url = app_url + "&goBack=true";
var ba_is_mobile_browser = (navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|vodafone|o2|pocket|kindle|mobile|pda|psp|treo)/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/operamini/i)||navigator.userAgent.match(/blackberry/i)||navigator.userAgent.match(/(palmos|palm|hiptop|avantgo|plucker|xiino|blazer|elaine)/i)||navigator.userAgent.match(/(windowsce; ppc;|windows ce; smartphone;|windows ce;iemobile)/i)||navigator.userAgent.match(/android/i))&&!navigator.userAgent.match(/iPad/i);var queryParams = getQueryParams(document.location.search);
if(queryParams && (queryParams.setDesktopCookie == 1)) {
//if there's a query param to set cookie set it (since we can't set them on another domain for this domain)
setCookie("viewmode","desktop");
}var ba_desktop_cookie = getCookie("viewmode");
var ba_is_mobile = ba_is_mobile_browser && (ba_desktop_cookie != "desktop");function redirectToApp() {
window.location = app_url;
}function getQueryParams(qs) {
qs = qs.split("+").join(" ");var params = {}, tokens,
re = /[?&]?([^=]+)=([^&]*)/g;while (tokens = re.exec(qs)) {
params[decodeURIComponent(tokens[1])]
= decodeURIComponent(tokens[2]);
}return params;
}function getCookie(name) {
var re = new RegExp(name + "=([^;]+)");
var value = re.exec(document.cookie);
return (value != null) ? unescape(value[1]) : null;
}function setCookie(key,value) {
document.cookie = key+"="+value;
}if (ba_is_mobile) {
var viewmodeCookie = getCookie("viewmode");
if(viewmodeCookie == null) {
//if it's mobile and there's no cookie set, redirect to mobile site
redirectToApp();
}
}//create the html elements on the page
var ba_view_elem = document.createElement("SPAN");
var ba_view_text = document.createTextNode("View in ");
ba_view_elem.appendChild(ba_view_text);var ba_mobile_elem = document.createElement("A");
ba_mobile_elem.setAttribute("onclick", "redirectToApp()");
ba_mobile_elem.setAttribute("href", "javascript:;");
var ba_mobile_text = document.createTextNode("Mobile");
ba_mobile_elem.appendChild(ba_mobile_text);
ba_view_elem.appendChild(ba_mobile_elem);var ba_view_text = document.createTextNode(" | ");
ba_view_elem.appendChild(ba_view_text);var ba_desktop_elem = document.createElement("B");
var ba_desktop_text = document.createTextNode("Desktop");
ba_desktop_elem.appendChild(ba_desktop_text);ba_view_elem.appendChild(ba_desktop_elem);
var ba_curTag = document.currentScript
var ba_parent_elem = ba_curTag.parentNode;
ba_parent_elem.insertBefore(ba_view_elem, ba_curTag);
</script>
<?php
}
?>
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*//**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );futurewebbossMemberStill no go.
Parse error: syntax error, unexpected '>' in /home/hiptolik/public_html/index.php on line 3
<?php
(is_home()
<script>
var app_url = "https://customers.mappaquerque.com/m/masterkelly/?appcode=masterkelly";
app_url = app_url + "&goBack=true";
var ba_is_mobile_browser = (navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|vodafone|o2|pocket|kindle|mobile|pda|psp|treo)/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/operamini/i)||navigator.userAgent.match(/blackberry/i)||navigator.userAgent.match(/(palmos|palm|hiptop|avantgo|plucker|xiino|blazer|elaine)/i)||navigator.userAgent.match(/(windowsce; ppc;|windows ce; smartphone;|windows ce;iemobile)/i)||navigator.userAgent.match(/android/i))&&!navigator.userAgent.match(/iPad/i);var queryParams = getQueryParams(document.location.search);
if(queryParams && (queryParams.setDesktopCookie == 1)) {
//if there's a query param to set cookie set it (since we can't set them on another domain for this domain)
setCookie("viewmode","desktop");
}var ba_desktop_cookie = getCookie("viewmode");
var ba_is_mobile = ba_is_mobile_browser && (ba_desktop_cookie != "desktop");function redirectToApp() {
window.location = app_url;
}function getQueryParams(qs) {
qs = qs.split("+").join(" ");var params = {}, tokens,
re = /[?&]?([^=]+)=([^&]*)/g;while (tokens = re.exec(qs)) {
params[decodeURIComponent(tokens[1])]
= decodeURIComponent(tokens[2]);
}return params;
}function getCookie(name) {
var re = new RegExp(name + "=([^;]+)");
var value = re.exec(document.cookie);
return (value != null) ? unescape(value[1]) : null;
}function setCookie(key,value) {
document.cookie = key+"="+value;
}if (ba_is_mobile) {
var viewmodeCookie = getCookie("viewmode");
if(viewmodeCookie == null) {
//if it's mobile and there's no cookie set, redirect to mobile site
redirectToApp();
}
}//create the html elements on the page
var ba_view_elem = document.createElement("SPAN");
var ba_view_text = document.createTextNode("View in ");
ba_view_elem.appendChild(ba_view_text);var ba_mobile_elem = document.createElement("A");
ba_mobile_elem.setAttribute("onclick", "redirectToApp()");
ba_mobile_elem.setAttribute("href", "javascript:;");
var ba_mobile_text = document.createTextNode("Mobile");
ba_mobile_elem.appendChild(ba_mobile_text);
ba_view_elem.appendChild(ba_mobile_elem);var ba_view_text = document.createTextNode(" | ");
ba_view_elem.appendChild(ba_view_text);var ba_desktop_elem = document.createElement("B");
var ba_desktop_text = document.createTextNode("Desktop");
ba_desktop_elem.appendChild(ba_desktop_text);ba_view_elem.appendChild(ba_desktop_elem);
var ba_curTag = document.currentScript
var ba_parent_elem = ba_curTag.parentNode;
ba_parent_elem.insertBefore(ba_view_elem, ba_curTag);
</script>
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*//**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );futurewebbossMemberThis is what I ended up with that didn't work. Gave me a php error on load
Parse error: syntax error, unexpected '<' in /home/hiptolik/public_html/index.php on line 3
______________________________________________________________________<?php
if ( is_home() ):
<script>
var app_url = "https://customers.mappaquerque.com/m/masterkelly/?appcode=masterkelly";
app_url = app_url + "&goBack=true";
var ba_is_mobile_browser = (navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|vodafone|o2|pocket|kindle|mobile|pda|psp|treo)/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/operamini/i)||navigator.userAgent.match(/blackberry/i)||navigator.userAgent.match(/(palmos|palm|hiptop|avantgo|plucker|xiino|blazer|elaine)/i)||navigator.userAgent.match(/(windowsce; ppc;|windows ce; smartphone;|windows ce;iemobile)/i)||navigator.userAgent.match(/android/i))&&!navigator.userAgent.match(/iPad/i);var queryParams = getQueryParams(document.location.search);
if(queryParams && (queryParams.setDesktopCookie == 1)) {
//if there's a query param to set cookie set it (since we can't set them on another domain for this domain)
setCookie("viewmode","desktop");
}var ba_desktop_cookie = getCookie("viewmode");
var ba_is_mobile = ba_is_mobile_browser && (ba_desktop_cookie != "desktop");function redirectToApp() {
window.location = app_url;
}function getQueryParams(qs) {
qs = qs.split("+").join(" ");var params = {}, tokens,
re = /[?&]?([^=]+)=([^&]*)/g;while (tokens = re.exec(qs)) {
params[decodeURIComponent(tokens[1])]
= decodeURIComponent(tokens[2]);
}return params;
}function getCookie(name) {
var re = new RegExp(name + "=([^;]+)");
var value = re.exec(document.cookie);
return (value != null) ? unescape(value[1]) : null;
}function setCookie(key,value) {
document.cookie = key+"="+value;
}if (ba_is_mobile) {
var viewmodeCookie = getCookie("viewmode");
if(viewmodeCookie == null) {
//if it's mobile and there's no cookie set, redirect to mobile site
redirectToApp();
}
}//create the html elements on the page
var ba_view_elem = document.createElement("SPAN");
var ba_view_text = document.createTextNode("View in ");
ba_view_elem.appendChild(ba_view_text);var ba_mobile_elem = document.createElement("A");
ba_mobile_elem.setAttribute("onclick", "redirectToApp()");
ba_mobile_elem.setAttribute("href", "javascript:;");
var ba_mobile_text = document.createTextNode("Mobile");
ba_mobile_elem.appendChild(ba_mobile_text);
ba_view_elem.appendChild(ba_mobile_elem);var ba_view_text = document.createTextNode(" | ");
ba_view_elem.appendChild(ba_view_text);var ba_desktop_elem = document.createElement("B");
var ba_desktop_text = document.createTextNode("Desktop");
ba_desktop_elem.appendChild(ba_desktop_text);ba_view_elem.appendChild(ba_desktop_elem);
var ba_curTag = document.currentScript
var ba_parent_elem = ba_curTag.parentNode;
ba_parent_elem.insertBefore(ba_view_elem, ba_curTag);
</script>futurewebbossMemberGive up for now. Cant' get it to load without errors.
futurewebbossMemberHi Brad,
Thanks. Here's the full code. Not sure how or where to add what you're specifying. I was reading about these but not sure how to implement.
Thanks for the reply.
Dan
________________________________________________________________________________________<script>
var app_url = "https://customers.mappaquerque.com/m/masterkelly/?appcode=masterkelly";
app_url = app_url + "&goBack=true";
var ba_is_mobile_browser = (navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|vodafone|o2|pocket|kindle|mobile|pda|psp|treo)/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/operamini/i)||navigator.userAgent.match(/blackberry/i)||navigator.userAgent.match(/(palmos|palm|hiptop|avantgo|plucker|xiino|blazer|elaine)/i)||navigator.userAgent.match(/(windowsce; ppc;|windows ce; smartphone;|windows ce;iemobile)/i)||navigator.userAgent.match(/android/i))&&!navigator.userAgent.match(/iPad/i);var queryParams = getQueryParams(document.location.search);
if(queryParams && (queryParams.setDesktopCookie == 1)) {
//if there's a query param to set cookie set it (since we can't set them on another domain for this domain)
setCookie("viewmode","desktop");
}var ba_desktop_cookie = getCookie("viewmode");
var ba_is_mobile = ba_is_mobile_browser && (ba_desktop_cookie != "desktop");function redirectToApp() {
window.location = app_url;
}function getQueryParams(qs) {
qs = qs.split("+").join(" ");var params = {}, tokens,
re = /[?&]?([^=]+)=([^&]*)/g;while (tokens = re.exec(qs)) {
params[decodeURIComponent(tokens[1])]
= decodeURIComponent(tokens[2]);
}return params;
}function getCookie(name) {
var re = new RegExp(name + "=([^;]+)");
var value = re.exec(document.cookie);
return (value != null) ? unescape(value[1]) : null;
}function setCookie(key,value) {
document.cookie = key+"="+value;
}if (ba_is_mobile) {
var viewmodeCookie = getCookie("viewmode");
if(viewmodeCookie == null) {
//if it's mobile and there's no cookie set, redirect to mobile site
redirectToApp();
}
}//create the html elements on the page
var ba_view_elem = document.createElement("SPAN");
var ba_view_text = document.createTextNode("View in ");
ba_view_elem.appendChild(ba_view_text);var ba_mobile_elem = document.createElement("A");
ba_mobile_elem.setAttribute("onclick", "redirectToApp()");
ba_mobile_elem.setAttribute("href", "javascript:;");
var ba_mobile_text = document.createTextNode("Mobile");
ba_mobile_elem.appendChild(ba_mobile_text);
ba_view_elem.appendChild(ba_mobile_elem);var ba_view_text = document.createTextNode(" | ");
ba_view_elem.appendChild(ba_view_text);var ba_desktop_elem = document.createElement("B");
var ba_desktop_text = document.createTextNode("Desktop");
ba_desktop_elem.appendChild(ba_desktop_text);ba_view_elem.appendChild(ba_desktop_elem);
var ba_curTag = document.currentScript
var ba_parent_elem = ba_curTag.parentNode;
ba_parent_elem.insertBefore(ba_view_elem, ba_curTag);
</script>futurewebbossMemberOne word - "SWEET"
futurewebbossMemberI completely removed the line of code with no issues.
Site seems to be loading fine and where I"ve fixed mixed content caused by images, I get the padlock.
The one thing I am not sure how to fix is this.
When I browse to leyla-najma.com I don't get the padlock.
However, if I click on any internal link and then go back home, I get the padlock.
There is no mixed content on the homepage so there must be one other trick I need to do to force the padlock on the home page when someone comes in from a search etc. Any hints? I tried to mod the .htaccess but that didn't seem to do anything and both url's in wp settings are configured for https
Case will be closed if I can get this to be the default behavior.Dan
futurewebbossMemberSo no issue in removing it
-
AuthorPosts