Jump to content

can you tell me where to add code on homepage for ads?


Guest semolinapilchard

Recommended Posts

Guest semolinapilchard

hi

my website

i want to add a few button links to my homepage under where the paypal button is bottom left

can someone enlighten me to where this code is and also how i get neat little square to put them in???

thanks

esther

Link to comment
Share on other sites

Guest hardnut33

you could create a box like the ones with the blue header and title 'sponsered links' or something...

this is a very easy and quick thing to do..check the skinning tricks pinned posts..add a box..

if you wanted to go one further there are some topics about using rotating images with clickable links inside a sidebox..do a search for java slideshow and rotating images...

Link to comment
Share on other sites

The above posts will point you in the right direction for the implementation of adding a content box to your homepage, although it will also add the same content to your product pages, site doc pages, and everything else.

I think you may need to mod the main index.php file to place the content conditionally, so it doesn't show up on other pages, unless that is okay with you. Since by definition, that is a 'mod', then we can't really talk about that here. Rather, you'll have to ask on CubeCartForums.org about doing that, or search on CubeCart.org to see if anyone has posted a mod that provides that feature.

On a completely different note, are the ads you plan to place on your homepage for products you sell on your site, or for other sites? If other sites, then why would you want to send people away before they have a chance to spend money with you?

Link to comment
Share on other sites

Guest hardnut33

not if you put the box in styletemplate/content/index.tpl rather than global/index.tpl Alan

then it will only appear on the homepage and no other pages

Link to comment
Share on other sites

Guest semolinapilchard

thanks guys!!!

its more to put the directories we are listed in and who we are recommended by

will have a play around!!

Link to comment
Share on other sites

not if you put the box in styletemplate/content/index.tpl rather than global/index.tpl Alan

then it will only appear on the homepage and no other pages

How would you create a box in /content/index.tpl and have it show up in the left column?

Link to comment
Share on other sites

Guest daverock

I reckon you create a new 'little box' div for each advert (inline styles, but it will work for you).

So after the Paypal 'box':

<div style="border: 1px solid #fff; background: #e5e5e5; text-align: center; padding: 5px 0; margin-top: 2px; width: 198px;">

	  <your ad image/link goes here>

</div>

Do this for each advert.

Link to comment
Share on other sites

Guest hardnut33

im only going by what i have done with my paypal logos at the bottom of the page...the display on mainpage only..

Link to comment
Share on other sites

Guest semolinapilchard

thanks guys!!!

yes fullt i want them where yours are but if possible i wan them all the same size so they look uniformed - think i will have to change the image sizes in photoshop to do this.

Link to comment
Share on other sites

Guest fullt

Yes, you will have to resize the logos to less than the column width, which is 155 px I think. I just used anchor tags in my / skins / Legend / styleTemplates / global /index.tpl file and put the tags here

<div class="colLeft">

{SHOPPING_CART}

{CATEGORIES}

{INFORMATION}

<!--{POPULAR_PRODUCTS}-->

<!--{CURRENCY}-->

<!--{LANGUAGE}-->

<BR><a href="http://www.YOUR URL" target="blank"><img src="YOUR IMAGE PATH" alt="YOUR ALT TEXT"></a><BR><BR>

</div>

<div class="colMid">

{PAGE_CONTENT}

</div>

The <BR> tags put a space between the logos and the target=blank opens the links in a new window (thanks jerseyjoe). If you need any help let me know. Good luck.

Link to comment
Share on other sites

fullt,

I noticed that in your index.tpl file, you have specified Language and Currency even though these selection boxes are not appearing in your site.

I do not want the selection boxes in my website as I just want English and UK Sterling for time being. To do that, I have removed the language and currency in global\index.tpl. Yet, these boxes are still coming. Is there anything else I need to?

Do you need to remove language and currency for all the skins?

Another question, how do I change the skin from legend to killer.

Link to comment
Share on other sites

Guest fullt

I noticed that in your index.tpl file, you have specified Language and Currency even though these selection boxes are not appearing in your site.

I do not want the selection boxes in my website as I just want English and UK Sterling for time being. To do that, I have removed the language and currency in global\index.tpl. Yet, these boxes are still coming. Is there anything else I need to?

Do you need to remove language and currency for all the skins?

Hi JRz -

The first thing I want to mention is that I'm not a Cube Cart guru by any stretch, so take what I say lightly. That being said-

By trial and error I found that commenting out the boxes gives me more flexibility until I make my final decisions. Once I started making changes it became difficult to keep track of the what I had done. If you comment out the boxes by using <!--{}--> tags, it leaves the default where it was in case I want to use it again.

Another question, how do I change the skin from legend to killer.

You change you skins in the Admin Control Panel (ACP) under General Settins/Styles and Misc. It's the second drop-down box.

I hope this helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...