Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2019-05-21 00:40:42

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Text color problem on mobil device

Hi,

On desktop computer, in lightbox presentation mode, the caption "photo name" is displayed in black while on mobil the legend Photo number is displayed in white

Here is the tokken I use:

Photo N° {Filename} | Dimensions: {OriginalWidth} x {OriginalHeight}px | {LUA=if City ~= "" then return sprintf("Ville: %s", City) end} {LUA=if City ~= "" and Country ~= "" then return " / " end} {Country} {LUA=if Caption ~= "" then return " l " end} {LUA=if Caption ~= "" then return sprintf("Légende:  %s", Caption) end} | Mots clés: {Keywords}

is a bug or an oversight or I'm doing something backwards, here are screenshots:

Capture-d-cran-2019-05-20-17-36-07.jpg

----------------------------------------------------------------------------------------

IMG-4980-4.jpg

----------------------------------------------------------------------------------------

Capture-d-cran-2019-05-20-17-37-07.png

Thanks
Nico

Offline

#2 2019-05-21 00:57:51

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Text color problem on mobil device

Apparently on mobil device, the number of the photo being composed only of digit is considered as a number element to called, so it must be highlighted (white).

This is what happens when you put your finger on the name of the photo (first image bellow), and then when you tap on cancel and we return to the image, the number is black and highlighted (second image below).

Someone knows how to solve the problem or has already had the case?

IMG-4983.png


IMG-4984.png

Offline

#3 2019-05-21 01:07:45

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Text color problem on mobil device

maybe a beginning of solution, but where to insert this code?

<meta name="format-detection" content="telephone=no" />

Last edited by Nico3939 (2019-05-21 01:58:20)

Offline

#4 2019-05-21 01:43:37

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Text color problem on mobil device

Maybe changing the color with CSS might do the trick as well.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#5 2019-05-21 01:54:28

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Text color problem on mobil device

Hi Daniel,

Thanks

I already try with color like red etc... but same issue.

The problem is the white background and iPone and iPad seems to convert in phone number, it's seem to be a css style in safari iOS

Offline

#6 2019-05-21 01:58:52

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Text color problem on mobil device

Do you know where to insert this code: ?

<meta name="format-detection" content="telephone=no" />

Offline

#7 2019-05-21 02:10:59

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Text color problem on mobil device

Nico3939 wrote:

Hi Daniel,

Thanks

I already try with color like red etc... but same issue.

The problem is the white background and iPone and iPad seems to convert in phone number, it's seem to be a css style in safari iOS

It is a matter of finding the proper CSS rule.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#8 2019-05-21 02:12:14

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Text color problem on mobil device

Nico3939 wrote:

Do you know where to insert this code: ?

<meta name="format-detection" content="telephone=no" />

You could try to use the ttg_head() hook, but I don't know if this will work as expected.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#9 2019-05-21 02:20:20

Nico3939
Member
From: France
Registered: 2016-10-05
Posts: 235
Website

Re: Text color problem on mobil device

Thanks Daniel, this is the solution

function ttg_head( $style, $path ) { 
    echo '
    <meta name="format-detection" content="telephone=no" />
     ';
    }

Problem resolve
smile

IMG-4985.png

Last edited by Nico3939 (2019-05-21 02:21:58)

Offline

#10 2019-05-21 03:16:33

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Text color problem on mobil device

smile


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

Board footer

Powered by FluxBB