Post by chris777 » Sun Sep 24, 2017 7:07 am

how to add custom header image? Im using 2.3.0.2
url is frogsale.com
Im wanting it on top above everything that is there now.

thanks for any help!

chris

New member

Posts

Joined
Tue Aug 08, 2017 8:46 pm

Post by IP_CAM » Sun Sep 24, 2017 8:40 am

Well, in your:
catalog/view/theme/*yourtheme*/template/common/header.tpl
check, wich Modification will function, it's either
<div id="container"> or <div class="container">
Then just change image-link and href-link, after you tested the Mod ! :D
Good Luck! ;)
Ernie

Version 1 VqMod ( IF <div id="container">)

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id><![CDATA[Add Top Header Banner]]></id>
<version><![CDATA[OS v.2.x]]></version>
<vqmver><![CDATA[2.5.1]]></vqmver>
<author><![CDATA[Ernie - IP_CAM]]></author>
<file name="catalog/view/theme/*/template/common/header.tpl">
<operation error="log">
<search position="before" index="1"><![CDATA[<div id="container">]]></search>
<add><![CDATA[
<div style="text-align:center;"><a href="http://www.euro-park.ch" target="_blank" title="Adults Only!"><img alt="Test Banner" title="Test Banner" width="1322" height="146" class="img-responsive" src="http://ebikes.li/shop/image/data/1322x146_banner.jpg"></a></div>
]]></add>
</operation>
</file>
</modification>
------------------

Version 1 OcMod ( IF <div id="container">)

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name><![CDATA[Add Top Header Banner]]></name>
<version><![CDATA[OS v.2.x]]></version>
<code><![CDATA[jti_topheader_banner]]></code>
<author><![CDATA[Ernie - IP_CAM]]></author>
<file path="catalog/view/theme/*/template/common/header.tpl">
<operation>
<search><![CDATA[<div id="container">]]></search>
<add position="before" index="1"><![CDATA[
<div style="text-align:center;"><a href="http://www.euro-park.ch" target="_blank" title="Adults Only!"><img alt="Test Banner" title="Test Banner" width="1322" height="146" class="img-responsive" src="http://ebikes.li/shop/image/data/1322x146_banner.jpg"></a></div>
]]></add>
</operation>
</file>
</modification>
------------------

Version 2 VqMod ( IF <div class="container">)

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id><![CDATA[Add Top Header Banner]]></id>
<version><![CDATA[OS v.2.x]]></version>
<vqmver><![CDATA[2.5.1]]></vqmver>
<author><![CDATA[Ernie - IP_CAM]]></author>
<file name="catalog/view/theme/*/template/common/header.tpl">
<operation error="log">
<search position="before" index="1"><![CDATA[<div class="container">]]></search>
<add><![CDATA[
<div style="text-align:center;"><a href="http://www.euro-park.ch" target="_blank" title="Adults Only!"><img alt="Test Banner" title="Test Banner" width="1322" height="146" class="img-responsive" src="http://ebikes.li/shop/image/data/1322x146_banner.jpg"></a></div>
]]></add>
</operation>
</file>
</modification>
------------------

Version 2 OcMod (IF <div class="container">)

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name><![CDATA[Add Top Header Banner]]></name>
<version><![CDATA[OS v.2.x]]></version>
<code><![CDATA[jti_topheader_banner]]></code>
<author><![CDATA[Ernie - IP_CAM]]></author>
<file path="catalog/view/theme/*/template/common/header.tpl">
<operation>
<search><![CDATA[<div class="container">]]></search>
<add position="before" index="1"><![CDATA[
<div style="text-align:center;"><a href="http://www.euro-park.ch" target="_blank" title="Adults Only!"><img alt="Test Banner" title="Test Banner" width="1322" height="146" class="img-responsive" src="http://ebikes.li/shop/image/data/1322x146_banner.jpg"></a></div>
]]></add>
</operation>
</file>
</modification>
---
can be seen in (v.1.5.6.5_rc) action here momentarely:
http://www.ebikes.li

Ernie's OpenShop v.1.75 + OpenCart v.1.5.6.5 LIGHT Test Sites with free responsive Themes
http://www.bigmax.ch/shop/ - http://www.ebikes.li - http://www.ipc.li/shop/ - http://www.openshop.li/shop/
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by chris777 » Sun Sep 24, 2017 9:08 am

hi:

I have <div class="container">

not sure where in suppose to put the code you gave me?

any hints? :)

Thanks chris (PHP newbie) (real new)

New member

Posts

Joined
Tue Aug 08, 2017 8:46 pm

Post by chris777 » Sun Sep 24, 2017 9:15 am

Do i just copy your code and put it in a zip file? then use extension installer?



thanks

chris

New member

Posts

Joined
Tue Aug 08, 2017 8:46 pm

Post by IP_CAM » Sun Sep 24, 2017 9:21 am

Well, if you plan to play around with your software, you should at least find out
what the purpose of a VqMod and/or OcMod is, otherways, you will
not have much luck, expecting others to play teacher on such. To be Newbie is
no excuse anymore, in a time, where every info is freely available for everyone.
Good Luck! ;)
Ernie
http://forum.opencart.com/viewtopic.php ... 15#p507217
https://github.com/vqmod/vqmod
http://www.opencartexpress.com/how-to-use-ocmod
https://github.com/opencart/opencart/wi ... ion-System
https://multimerch.com/blog/modifying-o ... -vs-ocmod/

Ernie's OpenShop v.1.75 + OpenCart v.1.5.6.5 LIGHT Test Sites with free responsive Themes
http://www.bigmax.ch/shop/ - http://www.ebikes.li - http://www.ipc.li/shop/ - http://www.openshop.li/shop/
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by chris777 » Sun Sep 24, 2017 9:12 pm

Thanks for the info Mr. Ernie!
I got a banner up now.....but its in triplicate http://www.frogsale.com
I only want it to be above the image of the green frog, the center RZR image.
Any tip on how to delete the top & bottom image?

this was the edited code i used:

<modification>
<name><![CDATA[Add Top Header Banner]]></name>
<version><![CDATA[OS v.2.x]]></version>
<code><![CDATA[jti_topheader_banner]]></code>
<author><![CDATA[Ernie - IP_CAM]]></author>
<file path="catalog/view/theme/*/template/common/header.tpl">
<operation>
<search><![CDATA[<div class="container">]]></search>
<add position="before" index="1"><![CDATA[
<div style="text-align:center;"><a href="http://frogsale.com" target="_blank" title="What Can A Frog Sale? Anything!"><img alt="Test Banner" title="Test Banner" width="1322" height="146" class="img-responsive" src="http://websitebychris.com/hostedimages/ ... ></a></div>
]]></add>
</operation>
</file>
</modification>

Thanks for your help!

chris

New member

Posts

Joined
Tue Aug 08, 2017 8:46 pm
Who is online

Users browsing this forum: No registered users and 6 guests