Different templates for pages
Today I was curious about creating a landing page for Wild Souls, but I wanted it to have a different appearance than the usual site layout. After some research and experimenting, I now present this tutorial!
-Step 1- You’re going to need to open class_template.php and scroll down to the function “assigntemplateVars”. Add this string of code underneath the other assigned variables: PHP Code:
-Step 2- Now go to the folder of the theme you are currently using and make a new tpl file. It can be called whatever you like, but for the sake of this tutorial I’ll call it “landing.tpl”. Open it up and add in the HTML of your desired layout (including body tags). Here is an example of mine: HTML Code:
<body class='text-center' style='background-image: none;'> Now the good part! Take a look at this string of code here: PHP Code:
Now, here is the basic skeleton of how your template.tpl file should use that code: HTML Code:
{include file="{$root}{$temp}{$theme}/header.tpl"} |
Quote:
|
Quote:
I sometimes forget to check here so forgive my if I seem kinda dead lol. If you have discord though, mine is Dinocanid#6171. I usually answer there pretty much instantly |
Quote:
|
All times are GMT -5. The time now is 02:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.