-
AuthorPosts
-
January 19, 2016 at 2:59 am #752608
Hi There,
Is it possible to add a page title using short code in cornerstone?
Or is there a different way to accomplish this?Thanks, Cor
January 19, 2016 at 3:10 am #752624Hi there,
No, Page title should be added in Cornerstone/Settings tab/General.
You can hide the page title and use custom headline element.
Hope it helps.
January 19, 2016 at 4:28 am #752742Thanks,
So it is not possible to grap some wp-code to add the page title?
January 19, 2016 at 5:14 am #752793Hi,
Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do ( perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
January 19, 2016 at 6:26 am #752909Hi there,
Sorry….
Instead of adding a page title manually, so by just adding a custom headline or text, it would be nice if I can give it title of the wordpress page. As you can see in the screenshot the name of the page is “Foto & Film”. So I just wondered if it is possible to add some code into the textfield of cornerstone to grap the page title from the wordpress backend. So if I change the page name I don’t have to change it on the page itself.
But please don’t put to much time in this…..it is easy to solve manually by typing the page name.
Thanks Cor
January 19, 2016 at 7:16 am #752983Hi Cor,
You can add this in your child theme’s functions.php file.
function page_title_shortcode( $atts ){ $page_title = get_the_title(); if($page_title) return $page_title; } add_shortcode( 'page_title', 'page_title_shortcode' );
Then use this code to display your page title
[page_title]
Hope that helps.
January 19, 2016 at 7:47 am #753044You guys Rock!!
Thanks!
January 19, 2016 at 7:50 am #753053Glad we were able to help 🙂
-
AuthorPosts