Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Added identities don't show on mobile phone theme
Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Mar 31, 2015 - 1:01 pm

I am using the Add Identities plugin to add Pinterest and Instagram icons to spTopicView.php as outlined in the codex. Everything works fine on the desktop side but for some reason the icons don't show up on the mobile version. I am using Default Child) for desktop and Unified Child as the mobile phone theme. I've added the identities at the exact same locations in each spTopicView.php. Also, if I set the Unified Child as the desktop theme the icons do show up. Do feel free to take a look using the credentials I sent earlier for the pop-up issue.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 31, 2015 - 2:48 pm

Hey Thorsten,

Are you putting the add identities code inside the correct section of Unified theme's spTopicView.php?

There are two lots of the same template functions in a section, one for mobile and one for desktop:

if($spDevice == 'mobile') {        #i.e If device is mobile -
    Anything here is for mobile
}

 

and:

if($spDevice != 'mobile') {        #i.e if device is not mobile -
    Anything here is desktop
}

 

My guess is that you have put the code under the desktop block rather than the mobile block.

Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Mar 31, 2015 - 4:29 pm

Hey Ike,

Thank you again, that was it indeed. I didn't notice the different sections in Unified since Default doesn't have them, which is the one I've used exclusively to this point. The codex doesn't make mention of it  either, perhaps it could be added for clarification (https://simple-press.com/docum.....dentities/)? In any case, I am all set now.

Thorsten

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 31, 2015 - 8:55 pm

thanks for the update...

hard to address every theme or possible theme since many of ours do it different (4 ways I think) and others could do it how they want...  but we can look at the codex...

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