Forum Support

Shape 5
October 19, 2021, 07:39:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Create Global Landing Page Template on Wordpress  (Read 677 times)
dtisi
Jr. Member
**
Offline Offline

Posts: 16



« on: 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!
Logged
dtisi
Jr. Member
**
Offline Offline

Posts: 16



« Reply #1 on: 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?
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #2 on: 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 can give you information on what pieces of code will add the classes you want.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
dtisi
Jr. Member
**
Offline Offline

Posts: 16



« Reply #3 on: 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.
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #4 on: January 05, 2018, 12:39:50 PM »

Where exactly are you wanting the extra classes to be located? 
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
dtisi
Jr. Member
**
Offline Offline

Posts: 16



« Reply #5 on: 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.
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #6 on: 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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.