Latest topics
» Modify Category Tabs lead to a desired position and auto scroll click
by djblah Today at 19:19

» [Bug] Missing username in Notifications
by Ape Today at 17:44

» Recent Topic with Avatar problem
by Wolfuryo Today at 16:20

» Dark Mode + Another Question
by Haggis Yesterday at 18:11

» IconSkouliki
by skouliki Yesterday at 14:52

» make the topic a color
by mr.blake214 Yesterday at 12:06

» Forum text has changed to bold
by tillytiger99 Yesterday at 05:02

» Request a Username Change
by mr.blake214 Yesterday at 01:30

» Display a preview of the user profile on hover
by HoeGy48 Tue 15 Aug 2017, 16:51

» Hai Guys~
by mr.blake214 Tue 15 Aug 2017, 13:48

» Forumactif Messenger - Instant Message Application for Forumotion
by DDril Tue 15 Aug 2017, 10:25

» Donation Box
by Ange Tuteur Tue 15 Aug 2017, 09:59

» Custom Award Problem (Profile Field)
by Ange Tuteur Tue 15 Aug 2017, 09:39

» Category Tabs
by SLGray Sat 12 Aug 2017, 22:45

» Forum Titles not in line
by Wolfuryo Fri 11 Aug 2017, 12:55

Recent Tutorials
Who is online?
In total there are 8 users online :: 1 Registered, 0 Hidden and 7 Guests :: 2 Bots

djblah

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

how can i show someting only in mobile

View previous topic View next topic Go down

avatar
sohab

Title :
Gender : Unspecified
Posts : 140
Points : 609
Reputation : 2
Language : frensh
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://www.saudijobstoday.net/

Postsohab on Sat 06 Aug 2016, 19:34

how can i show something in the header only in mobile and tabltes devices ?
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4675
Points : 9685
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Sat 06 Aug 2016, 19:48

Hi @sohab,

It depends on the type of content you want to show. What is it that you'd like to only appear on mobile ?
avatar
sohab

Title :
Gender : Unspecified
Posts : 140
Points : 609
Reputation : 2
Language : frensh
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://www.saudijobstoday.net/

Postsohab on Sat 06 Aug 2016, 19:53

some banner or mobile cpa offfer !
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4675
Points : 9685
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Sat 06 Aug 2016, 20:05

You can try injecting the content via JavaScript.
Admin Panel > Modules > JS codes management > New script

Placement : In all the pages
Code:
$(function() {
  if (_userdata.page_desktop) {
    $('#logo-desc').append('MOBILE_CONTENT');
  }
});

Replace MOBILE_CONTENT with the content you want shown in the header.

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum