Try the Demo

Magento Forum

   
Php code footer
 
JKuppens
Jr. Member
 
Total Posts:  13
Joined:  2012-11-16
 

Hello,

I have a problem with the php code of my footer.
The following code is in the footer.phtml file:

?>
<div class="footer-container">
<div class="footer">
<?php echo $this->getChildHtml() ?>
<address><?php echo $this->getCopyright() ?></address>
<div class="design-by"><a href="http://web-experiment.info">Magento Themes</a></div>
</div>
</div>

My problem is with the blue line. On the frontend it gives me a line with urls. (the one in the red circle). And it also makes sure that the block that is above the circle can be visible. Now I want to change the urls in that line and make them look like the urls above the red circle. But I cannot find where or how.

Can someone please help me? This is the last thing I need before we can go online and start selling our products.

Image Attachments
footer.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
Siggi_Schmitz
Guru
 
Avatar
Total Posts:  515
Joined:  2011-07-03
 

What do you want to change in the look? Only the vertical lines as seperators between the links? You can do this with css, use firebug to see how the seperators are added in the link line above, on a local shop from me, the “li” elements has “skin/frontend/default/default/images/bkg_pipe2.gif” has a background-image.

.footer li {
    background
url("../images/bkg_pipe2.gif"no-repeat scroll 10060transparent;
    
displayinline;
    
padding0 7px 0 4px;
}

 Signature 

Magento Freelancer.

Need an extension? Feel free to contact me!

Web: http://www.sig-tec.de
E-Mail:
Skype: sig-tec
Xing: https://www.xing.com/profile/Siegfried_Schmitz2
Profil auf freelance.de
Profil auf freelancermap.de

 
Magento Community Magento Community
Magento Community
Magento Community
 
omar97
Jr. Member
 
Total Posts:  3
Joined:  2013-02-12
Dhaka, Bangladesh
 

Here all members are very kind and helpful. I appritiate all along with you for your useful answer.

 Signature 

type 2 diabetes

 
Magento Community Magento Community
Magento Community
Magento Community
 
JKuppens
Jr. Member
 
Total Posts:  13
Joined:  2012-11-16
 

I got it fixed! Thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
markspend1
Jr. Member
 
Total Posts:  5
Joined:  2013-02-27
 

Hey Guys i think that the PHP and all it’s code is simply arriving through in the ultimate html web page rather of being organized.This is:

<?php
include_once "/websites/www.londonrc.com/acountphp/acounter.php";
$ani_counter = new acounter();
echo $ani_counter->create_output("forums");
?>

Web Design NY

 
Magento Community Magento Community
Magento Community
Magento Community
 
Monty22
Guru
 
Avatar
Total Posts:  655
Joined:  2013-01-01
 

Hello,

Footer of Magento store.

Firstly go into the admin section of your store.

CMS -> Static Blocks

Create a new block and take note of the identifier you chose to use.

Now open the page.xml template found at:

app/design/frontend/{YOU_PACKAGE}/{YOUR_THEME}/layout
\

If its not in your own package and theme, edit the default one or copy the file from the default into your new theme.

Within this XML document, search for the “footer” <block> (ca. Line:103) inside <default></default>.

Add the following code to that block:

<block type="cms/block" name="footer_company_details">
     <
action method="setBlockId"><block_id>company_details</block_id></action>
</
block>

Note:--The thing to remember here is that in the above example, company_details is our static block identifier. footer_company_details is what we are going to need in a moment.

Lastly:

Open the phtml file footer.phtml found at:

app/design/frontend/{YOU_PACKAGE}/{YOUR_THEME}/template/page

Again, if it’s not in your own custom package and theme; edit the original or better still, just copy over the file and/or file structure.

Now at the bottom of the this file add the following line to where you want your static block to be displayed

<?php echo $this->getChildHtml('footer_company_details'?>

For example:

<div class="footer-container">
    <
div class="footer">
        
<?php echo $this->getChildHtml('bottomContainer'?>
        
<div class="f-right">
            <
img src="<?php echo $this->getSkinUrl('images/media/footer_callout.png');?>" class="footer-callout" alt="" />
            
<?php echo $this->getChildHtml('store_switcher'?>
        
</div>
        <
div class="f-left">
            
<?php echo $this->getChildHtml('cms_footer_links'?>
            <?php 
echo $this->getChildHtml('footer_links'?>
            <?php 
echo $this->getChildHtml('footer_company_details'?>
            <?php 
echo $this->getChildHtml('newsletter'?>
            
<!-- <class="bugs"><?php echo $this->__('Help Us to Keep Magento Healthy'?> - <a href="http://www.magentocommerce.com/bug-tracking" onclick="this.target='_blank'"><strong><?php echo $this->__('Report All Bugs'?></strong></a<?php //echo $this->__('(ver. %s)', Mage::getVersion()) ?></p> -->
            
<address><?php echo $this->getCopyright() ?></address>
        </
div>
    </
div>
</
div>

If you need any kind of help you can contact us as we are one of best Magento extensions developer.

Thanks

Monty
iLoveMage

Get 25% discount all our Magento Extensions.

 Signature 

Get 15% discount on all our extensions Use code MON15 | Risk-free purchase with our 14 days Money Back Guarantee policy!

 
Magento Community Magento Community
Magento Community
Magento Community
 
noahwilson
Member
 
Total Posts:  49
Joined:  2013-03-15
 

Hey i give some code so try with this i hope it will be work thank.
<?php
include_once "/websites/page-path/.php";
$ani_counter = nw cntr();
echo $ani_cntr->create_output("forums");
?>

 Signature 

Moving To Germany | International Movers | Furniture Removalists Perth | International Movers in Sydney

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