How to add H1 Tag to Home Page - Opencart 2
Anybody know how and is it worth the effort ?
Thanks
Anybody know how and is it worth the effort ?
Thanks
open file (opencart 2.x)
catalog\view\theme\default\template\common\home.tpl
add <h1>You content here</h1> after <div class="container">
catalog\view\theme\default\template\common\home.tpl
add <h1>You content here</h1> after <div class="container">
News CMS || Plus SEO || Live Price change with Option Select
I've now added the H1 Tag, the font is too large it looks bad on my homepage, how do I now reduce the font size?
Thanks
Thanks
edit the h1 settings in your stylesheet.css or use an inline style to change only the one you added to your homepage.
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Hello labeshops, thanks for reply. I'm sorry I don't understand, I think I'm looking for the code to reduce the font size ?
Thanks
Thanks
Which is controlled in your stylesheet.
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Thanks again for reply labeshop.
I've roped in my teenage son to help this duffer out, he's added some code and it's done what I've wanted, also centred it on homepage and spaced it better, would you kindly look and comment and assure me I've not pressured him into messing things up ? !
<?php echo $header; ?>
<div id="container" class="container j-container">
<h1 style="margin-top: 16px; margin-left: 18px; font-size: 18px;" align="center">MY TEXT</h1>
<div class="row"><?php echo $column_left; ?><?php echo $column_right; ?>
I've roped in my teenage son to help this duffer out, he's added some code and it's done what I've wanted, also centred it on homepage and spaced it better, would you kindly look and comment and assure me I've not pressured him into messing things up ? !
<?php echo $header; ?>
<div id="container" class="container j-container">
<h1 style="margin-top: 16px; margin-left: 18px; font-size: 18px;" align="center">MY TEXT</h1>
<div class="row"><?php echo $column_left; ?><?php echo $column_right; ?>
Looks fine and is what I meant by changing it inline Kudos to your son.
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
In future, if you need to change the style definitions, you can very easily use the browser inspectors (Inspect element in firefox and chrome) and then select the specific text element. The browsers will then point you to the actual defined CSS in the relevant stylesheet (including the line numbers within the CSS), which will then allow you to customise.
The editors also actually allow you to change these definitions on the fly to come up with the best CSS values.
The editors also actually allow you to change these definitions on the fly to come up with the best CSS values.
--
Soteri Panagou
Freelance Developer and Opencart Zealot
http://www.opencart.com/index.php?route ... @gmail.com
jimmyphong.. thx man
ELUKSHOP
Step 1:, copy in public public_html file step1_install_h1.php
step 2.-Open via browser domain.com/step1_install_h1.php
step 3 for Versiunea 3.0.3.7, instal step2_seo-tag-h1_for-OC-3.x.ocmod.zip from for-seo-tag-h1_v1.3-pack-3.x- Is super ok thx man for extension.
https://www.opencart.com/index.php?rout ... load_id=63jimmyphong wrote: ↑Mon Nov 30, 2015 5:19 amopen file (opencart 2.x)
catalog\view\theme\default\template\common\home.tpl
add <h1>You content here</h1> after <div class="container">
ELUKSHOP
Step 1:, copy in public public_html file step1_install_h1.php
step 2.-Open via browser domain.com/step1_install_h1.php
step 3 for Versiunea 3.0.3.7, instal step2_seo-tag-h1_for-OC-3.x.ocmod.zip from for-seo-tag-h1_v1.3-pack-3.x- Is super ok thx man for extension.
Who is online
Users browsing this forum: Semrush [Bot] and 86 guests