Forums / Templates, Stylesheets, Page Layout / Bootstrap custom template coding

Bootstrap custom template coding

Views: 507

Results 1 to 2 of 2
4 Dec 2025, 2:20 AM
#1
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Bootstrap custom template coding

Zen Cart 2.2
PHP Version 8.4

Using a bootstrap slideshow template for my website.
How can one code the line below with a constant so I don't always have to edit over 40 pages to change my new YOUR_TEMPLATE name on each upgrade?

<link href="../includes/templates/YOUR_TEMPLATE/css/step_by_step_guides.css" rel="stylesheet">

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

4 Dec 2025, 3:35 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Bootstrap custom template coding

I used an EZpage with the following code

<a title="How to make a Bun" href="/steps/bun.html" target="_blank" rel="noopener noreferrer">Bun</a>

Then created a folder called steps with bun.html inside the folder at my root

bun.html is a DOCTYPE

Trying to use a constant for my YOUR_TEMPLATE name below, so I don't have to edit over 40 files each time on an upgrade and change the name for my override.

<link href="../includes/templates/YOUR_TEMPLATE/css/step_by_step_guides.css" rel="stylesheet">

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.