Jump to content

[SOLVED] how to set custom block for every page?


Recommended Posts

let's clarify.

i have no idea what method you want to use

you want to modify core of the template files, or you want to achieve it with modules?

depending on what method you will use, we will help

just clarify this one thing please

i want to modify core of the template files, please help me?

thanks vekia

Link to comment
Share on other sites

ok, so in this case instead of installing modules, follow DevNet suggestions, i mean open file: footer.tpl from your theme directory

 

path should looks like: /themes/YOUR_THEME/footer.tpl

where YOUR_THEME is a name of your theme that you currently use in shop.

Link to comment
Share on other sites

ok, so in this case instead of installing modules, follow DevNet suggestions, i mean open file: footer.tpl from your theme directory

 

path should looks like: /themes/YOUR_THEME/footer.tpl

where YOUR_THEME is a name of your theme that you currently use in shop.

 

yes, i did it vekia and then what must i do ?

Link to comment
Share on other sites

 

you have to create it by yourself

<div class="myblock">
my block
</div>

then you can stylize it with css styles

 

for example

.myblock{
display:inline-block;
float:left;
width:200px;
height:400px;
background:red;
color:#FFF;
}

 

i must create new block?

i can not copy code from the custom cms information block to the footer.tpl ?

Link to comment
Share on other sites

if you aren't quite sure what code to use - let me know about your code,

just paste it here, i will try it on my own and fix it for potential problems :)

 

oke vekia  :) ,

a have a problem, the facebook plugin cannot show for every page, just show in the home,..

this is code footer.tpl (i am sorry, my english is not good)

 

{if !$content_only}
</div> <!-- #center_column -->
{if isset($right_column_size) && !empty($right_column_size)}
<div id="right_column" class="col-xs-12 col-sm-3 column">
{$HOOK_RIGHT_COLUMN}
</div>
 
 
 
 
 
{/if}
</div> <!-- .row -->
</div> <!-- #columns -->
</div> <!-- .columns-container -->
<!-- Footer -->
<div class="footer-container">
<div class="container">
 
<footer id="footer" class="row">
 
{$HOOK_FOOTER}
<br>
<br>
<div class="fb-like-box" 
 
data-colorscheme="light" 
data-show-faces="true" 
data-header="false" 
data-stream="false" 
data-show-border="true"> 
</div>
 
 
</footer>
<br><br>
<p>Powered by <a href="#"> BaluTeam</a><br>
Copyright © 2014 BALU ONLINE SHOP. All rights reserved.</p>
</div>
 
 
 
 
</div> <!-- .footer-container -->
</div> <!-- #page -->
{/if}
</body>
</html>
Link to comment
Share on other sites

hello

 

so, this is code that you added:

 

<div class="fb-like-box" 
 
data-href="https://www.facebook...8421638?fref=ts" 
data-colorscheme="light" 
data-show-faces="true" 
data-header="false" 
data-stream="false" 
data-show-border="true"> 
</div>

am i right?

 

yes vekia, you are right ,..

how i can solve my problem?

Edited by bayyuPratama (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...