Shape 5

Wordpress Club Themes => Business Line - Club => : dtisi January 03, 2018, 08:49:38 AM



: Create Global Landing Page Template on Wordpress
: dtisi January 03, 2018, 08:49:38 AM
Hello,

We are using the Businessline Wordpress theme.  We want to create some landing pages where we want to hide some element like (header and footer).  We researched about it and found this can be done via adding a page template (like this:  https://prnt.sc/hvjq99) but when I add the page template, its not showing the page attributes.  So can you suggest to us a global solution rather then css or Widget Context (widget assignment)?  

Please advise, thank you!


: Re: Create Global Landing Page Template on Wordpress
: dtisi January 03, 2018, 09:12:27 AM
Also, one more question, how can we enable post id, category in body class on the Wordpress theme?


: Re: Create Global Landing Page Template on Wordpress
: Tristan Rineer January 03, 2018, 12:24:58 PM
If you want to create a custom page template as a landing page, you can duplicate the index.php file and make your edits to the copy.  To make it available as a selectable page template in the page/post editor, just follow the instructions under "Creating Custom Page Templates for Global Use" here:
https://developer.wordpress.org/themes/template-files-section/page-template-files/#creating-custom-page-templates-for-global-use


As far as adding classes to the body content, you can edit the content.php file in the theme folder to make any edits you need.  The WordPress Codex (https://codex.wordpress.org/) can give you information on what pieces of code will add the classes you want.


: Re: Create Global Landing Page Template on Wordpress
: dtisi January 05, 2018, 08:55:34 AM
Thanks for the page Template solution.
But for body class can you please describe more about content.php.
Where to add the code.
I am familiar with the wordpress codes for adding classes.
But I want to know where to add in content.php.


: Re: Create Global Landing Page Template on Wordpress
: Tristan Rineer January 05, 2018, 12:39:50 PM
Where exactly are you wanting the extra classes to be located? 


: Re: Create Global Landing Page Template on Wordpress
: dtisi January 06, 2018, 09:10:13 AM
I want what ever the last slug (https://prnt.sc/hwunqs) of the page, post or category on #s5_body_padding or class in main body.


: Re: Create Global Landing Page Template on Wordpress
: Tristan Rineer January 08, 2018, 10:03:15 AM
The #s5_body_padding div is located in the index.php file of the theme.  For this theme, the div opens on line 235.