Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Everyone’s Issue - Sidebars
 
zbunn24
Jr. Member
 
Total Posts:  30
Joined:  2008-05-20
 

I’ve seen countless posts on the topic and hardly any answers. What files to you go to and how to do you get their to edit both the left and the right sidebars? I’ve already changed the images, but I want to change what they link to. I know the answer cannot be that hard, but when you go messing around in the files you can really mess things up. For instance, I went to this file:

/html/app/design/frontend/default/default/template/callouts/right_col.phtml

and changed the alternate text to the company name, Covenant TCG!. For some reason now, on my browser the right call out box no longer appears, instead it is the alternate text. On another computer, the images is there. On all computers, the poll has disappeared from my pages. I would love to undo what I did, but not matter what I enter the poll won’t come back. Here is my url:

http://store.teamcovenant.com

Any help would be greatly appreciated. Thanks in advance,

God Bless,
Zach

 
Magento Community Magento Community
Magento Community
Magento Community
 
zbunn24
Jr. Member
 
Total Posts:  30
Joined:  2008-05-20
 

Alright, so I figured out how to change the link to the left call out image. I went here:

html/app/design/frontend/default/default/template/callouts/left_col.phtml

and changed the following code:

<div class="box">
    
<?php if (strtolower(substr($this->getLinkUrl(),0,4))==='http'): ?>
        
<a href="<?php echo $this->getLinkUrl() ?>">
    
<?php elseif($this->getLinkUrl()): ?>
        
<a href="http://teamcovenant.com">
    
<?php endif ?>
    
<img src="<?php echo $this->getSkinUrl($this->getImgSrc()) ?>" width="195" alt="<?php echo $this->__($this->getImgAlt()) ?>" style="display:block;" />
    
<?php if ($this->getLinkUrl()): ?>
    
</a>
    
<?php endif ?>
</div>

to this:

<div class="box">
    
<?php if (strtolower(substr($this->getLinkUrl(),0,4))==='http'): ?>
        
<a href="<?php echo $this->getLinkUrl() ?>">
    
<?php elseif($this->getLinkUrl()): ?>
        
<a href="[b]http://ENTERYOURSITE.com[/b]">
    
<?php endif ?>
    
<img src="<?php echo $this->getSkinUrl($this->getImgSrc()) ?>" width="195" alt="<?php echo $this->__($this->getImgAlt()) ?>" style="display:block;" />
    
<?php if ($this->getLinkUrl()): ?>
    
</a>
    
<?php endif ?>
</div>

I am going to imagine that the two files:

left_col.phtml and right_col.phtml

are the ones you edit to change everything in both the right and left sidebars. My site is still messed up in that when I changed the alt text on the right image it made my poll disappear. Any help would be awesome,

God Bless,
Zach

 
Magento Community Magento Community
Magento Community
Magento Community
 
I'm Done
Member
 
Total Posts:  32
Joined:  2008-05-08
 

I might have an answer to this issue…

Go to: app/design/frontend/default/default/template/callouts/left_col.phtml or right_col.phtml

Open file and let’s say for the left_col file, replace…

<div class="box">
    <
img src="<?php echo $this->getSkinUrl($this->getImgSrc()) ?>" width="195" alt="<?php echo $this->__($this->getImgAlt()) ?>" style="display:block;" />
</
div>

with…

<div class="box">
    <
img src="<?php echo $this->getSkinUrl('images/media/col_left_callout.jpg') ?>" width="195" alt="<?php echo $this->__('Place your alt text here') ?>" style="display:block;" />
</
div>

Don’t forget to replace your image(s) in skin/frontend/default/default/images/ with your new image.

...and if you want to link to this image, do such as...

<div class="box">
    <
a href="/linkhere.htm"><img src="<?php echo $this->getSkinUrl('images/media/col_left_callout.jpg') ?>" width="195" alt="<?php echo $this->__('Place your alt text here') ?>" style="display:block;" /></a>
</
div>
 
Magento Community Magento Community
Magento Community
Magento Community
 
groupthing
Member
 
Total Posts:  40
Joined:  2007-12-24
 

Alternatively, you can go with getURL, just beware that it adds a slash (/) to the end:

<div class="box">
    <
a href="<?php echo $this->getUrl('products') ?>"><img src="<?=$this->getSkinUrl('images/media/image.gif')?>" width="200" alt="<?=$this->__('Your Alt Text.')?>" style="display:block;" /></a>
</
div>
 
Magento Community Magento Community
Magento Community
Magento Community
 
kingkao
Member
 
Avatar
Total Posts:  50
Joined:  2008-04-02
Toronto
 

Ugh...I am having problems with my sidebar as well.
http://kingkao.com/magento
My compare items does not show up and previously view does not show until you click on something, which is kind of cool, except that its not its expected behaviour. Lol.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ADoppel
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-12-25
 

I have tried both codes above in right_col.phtml, but the image still wont link.. I try to click it but nothing happens.. I checked with Firebug, and it seems like the code is not the same than I have in right_col.phtml Has something here changed from previous versions?

Im using Magento 1.2.0.2.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top