Latest topics
» what if you asked for help to fix a problem in forum and you got this
by Michael_vx Yesterday at 21:16

» [GAME] Count to One Million!
by Ange Tuteur Yesterday at 19:44

» Change the Path ::
by Guest Yesterday at 14:22

» blah
by Andrei34 Yesterday at 01:13

» How to remove these spaces
by Gin NeOs Sat 21 Jan 2017, 19:34

» Hello! I'm Prometheus.
by Guest Sat 21 Jan 2017, 08:12

» Night Mode
by Michael_vx Sat 21 Jan 2017, 00:00

» Happy Birthday Thread
by Michael_vx Fri 20 Jan 2017, 23:18

» The Happy Thread
by Guest Fri 20 Jan 2017, 08:37

» Display a Preview of Groups on Hover
by Guest Fri 20 Jan 2017, 08:32

» Race for the White House
by Guest Fri 20 Jan 2017, 08:23

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Fri 20 Jan 2017, 03:27

» Starred Forums
by Milouze14 Fri 20 Jan 2017, 03:13

» FM Themes
by SLGray Thu 19 Jan 2017, 19:16

» User - Made Creations
by SLGray Thu 19 Jan 2017, 19:15

Recent Tutorials
Top posting users this month
Who is online?
In total there are 7 users online :: 0 Registered, 0 Hidden and 7 Guests :: 1 Bot

None

[ 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

sohab

Title :
Gender : Unspecified
Posts : 140
Points : 402
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 ?
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4205
Points : 8675
Reputation : 2108
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome 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 ?
sohab

Title :
Gender : Unspecified
Posts : 140
Points : 402
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 !
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4205
Points : 8675
Reputation : 2108
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome 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