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 2014-09-18 01:21:17

jimvee
Member
Registered: 2013-10-29
Posts: 28

Centre Page Content

I want to centre content on my 'About' page. Clicking the alignment dialogue seems to do nothing. Am I missing something here?

Also, is there a way to make phone numbers clickable on a smartphone?

thanks

Offline

#2 2014-09-18 02:41:57

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Centre Page Content

Hmm. Looks like the alignment control for Primary Content isn't working.
Matt will have to look into it.

For phone numbers, try searching Google on making phone numbers clickable. You'll probably find some html5 for it that you can insert into the page text.
Here's one that showed up right at the top: http://demosthenes.info/blog/536/Adding … -Microdata


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2014-09-18 05:00:32

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Centre Page Content

on centering: you can always use html too:

<h2 style= "text-align:center;">About</h2>

<p style= "text-align:center;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus semper ipsum nibh. Proin vitae erat at enim semper placerat non in metus. Praesent et sodales orci. Maecenas tristique ultricies lorem non lacinia. Mauris sem elit, scelerisque vel laoreet at, placerat a nibh. In nec nunc vel neque sollicitudin euismod. Mauris vitae lorem dui.</p>

Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#4 2014-09-18 13:34:42

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Centre Page Content

I'll look into the text-align issue next time I'm working on Pages.


Matt

The Turning Gate, http://theturninggate.net

Offline

#5 2014-09-19 02:54:54

jimvee
Member
Registered: 2013-10-29
Posts: 28

Re: Centre Page Content

Thanks Rod. Your html workaround does centre text but my other formatting all goes wrong.. I'm sure it's my bad coding but I have no idea why.

Without the centring html: http://af.vu/pages3/about.php
with the centring html: http://af.vu/pages2/about.php
(I'm loosing email links and gaining underscores that are supposed to make bold text)

Also.. managed to make one phone number clickable but only by adding the same line of code twice, otherwise it doesn't show:

__Jim:__ <i style="color: #f93;" class="fa fa-envelope"></i> <jim@af.vu>          <i style="color: #f93;" class="fa fa-phone"></i> <a href="tel:+447831507226>07831 507226</a>

<a href="tel:+447831507226”>07831 507226</a>

I appreciate this is about markdown and html and not really about the CE4 Pages but if my stupid errors are obvious, please point them out..

Offline

#6 2014-09-19 03:07:59

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Centre Page Content

Markdown doesn't process inside block-level HTML tags. You will have to use the HTML tags instead.

Note that Markdown formatting syntax is not processed within block-level HTML tags. E.g., you can’t use Markdown-style *emphasis* inside an HTML block.

Source: http://daringfireball.net/projects/markdown/syntax#html

You might also want to try writing the content in a Markdown editor, as opposed to directly in Lightroom. That will let you see the changes as you write it, and before you publish. Matt has some recommendations in the docs.

Last edited by kmlucy (2014-09-19 03:24:01)


Kyle Lucy Photography
kylelucy.com

Offline

#7 2014-09-19 05:00:52

jimvee
Member
Registered: 2013-10-29
Posts: 28

Re: Centre Page Content

So it's a bad idea to try mixing Markdown and HTML.. That's a tough one. Thanks for the tips, I'll go spend some more time on this.

Offline

#8 2014-09-19 06:04:21

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Centre Page Content

You can't put Markdown within html nor html within Markdown. But you can mix them up. For example, you could use Markdown for a header followed by paragraph tags containing your styling.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB