Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Theme Background Disappears on Forum Page [WP Integration]
Avatar
N
Member
Free Members
sp_UserOfflineSmall Offline
Oct 22, 2013 - 9:25 am

Hello,

I added Simple:Press to my WP.org site, but the theme's background image disappears on the Forum page no matter which template I use. The background image returns on that page when I disable Simple:Press, so the theme's template isn't to blame.

With SP enabled, I inspected a working page (Home) with Firebug, and it says this:

<body class="home customize-support">
<img id="background" style="" alt="img" src="http://mydomain/wp-content/uploads/2013/01/1.jpg" />

Now, when I inspect the Forum page it says this:

<body class=" customize-support">
<img id="background" style="display: none;" alt="img" src="#" />

Any ideas on how I can I fix this problem? The theme's Javascript (some fancy hover effects on the navigation) also stop working on the Forum page when SP is enabled, if that helps at all.

Thank you,

N

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 22, 2013 - 11:51 am

you didnt give us a link, but my guess is you have plugin (or the wp theme) that is doing a custom background on the wp login page...  since the forum includes an inline login form, that other plugin is getting overly greedy and messing up the background on the forum page...

if that is true, a couple options... fix the greedy plugin... or remove the forum inline login form so it doesnt confuse the other plugin or theme...

Avatar
N
Member
Free Members
sp_UserOfflineSmall Offline
Oct 22, 2013 - 12:03 pm

Mr Papa said
you didnt give us a link, but my guess is you have plugin (or the wp theme) that is doing a custom background on the wp login page...  since the forum includes an inline login form, that other plugin is getting overly greedy and messing up the background on the forum page...

if that is true, a couple options... fix the greedy plugin... or remove the forum inline login form so it doesnt confuse the other plugin or theme...

Thank you for the quick reply, Mr Papa. I should have mentioned that I've tested this with plugins disabled. How can I remove the inline forum login form? I'm happy to PM you a link to my site if need be :-)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 22, 2013 - 6:50 pm

just remove if from the template file that displays it in your sp theme... in this case, its spHead.php template file... look for template function:

        sp_LoginForm($loginForm);

note, the login button wont work if you remove the inline form, but dont worry about that for quick test... we can change the button to point to the wp login page if successful...

Avatar
N
Member
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2013 - 6:12 am

Mr Papa said
just remove if from the template file that displays it in your sp theme... in this case, its spHead.php template file... look for template function:

        sp_LoginForm($loginForm);

note, the login button wont work if you remove the inline form, but dont worry about that for quick test... we can change the button to point to the wp login page if successful...

I made the change, but unfortunately the background image still doesn't display. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2013 - 10:27 am

okay, then not sure why the theme is changing the body class...  the simple press plugin is not changing the body class as we dont apply or remove any body class styles...  but that is an abnormal way of doing a background image too so maybe something else at work - just not sure what it might be...

maybe go to forum - options - content settings and try turning off the popup enlargement option...

or go to forum - integration - page and permalink and turn on the strict wp api option..

Avatar
N
Member
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2013 - 12:52 pm

Oh I see, well I've tried the methods suggested but still no joy. Very strange one is this.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2013 - 5:53 pm

something is physically changing the style to make it not show...  but not sure what...  what about that link?

Avatar
N
Member
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2013 - 6:12 pm

Mr Papa said
something is physically changing the style to make it not show...  but not sure what...  what about that link?

I've sent you a PM, thanks again for your time :-)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2013 - 9:21 pm

odd... the wp theme is doing a couple things that violate the wp standards...  not sure it has any impact but may...

its loading jquery and jquery ui from an external source instead of the using the copies that come with wp...

<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js?ver=1.5.2'></script>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js?ver=1.8.15'></script>

thats not a good thing to do, especially with those old versions...  jquery 1.5.2 is very old - current version that comes with wp is 1.10.2...   jquery ui isnt as bad but still 1.8.15 vs wp version of 1.10.3...

but those old versions of jquery and jquery ui could be quite unstable and not what wp and other plugins are expecting...  but cant guarantee its the problem either though...

does the wp theme have any options to not load external jquery or jquery ui?  and use the wp versions?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625