Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • fbernardello Friend
    #927145

    Dear Support, as suggested by the documentation, I’m managing many different copies of the template: one for the main content, one for the events, one for the blog, ecc… in order to solve a problem I’m facing, I generated a new copy of the template (ja_teline_v – Contatti), and I would like to apply this new copy to some particular pages. I need to set to this copy of the template a different header, so I generated a new file named "header-contact.php" with some small corrections in "/templates/ja_teline_v/tpls/blocks".

    Where can I set this new "header-contact.php" instead of the standard "header.php" ONLY for this copy of the template (ja_teline_v – Contatti)?

    Thanks in advance, Federico

    pavit Moderator
    #927196

    Hi

    You can create a new layout file in this folder /templates/ja_teline_v/tpls/ and call it for example

    contact.php then based on your needs you can add the various blocks to it

    so for example copying the default.php block it can be

    <body>
    
    <div class="t3-wrapper"> <!-- Need this wrapper for off-canvas menu. Remove if you don't use of-canvas -->
    
      <?php $this->loadBlock('topnav') ?>
    
      <?php $this->loadBlock('header-contact') ?>
    
      <?php $this->loadBlock('mainnav') ?>
    
      <?php $this->loadBlock('spotlight-1') ?>
    
      <?php $this->loadBlock('navhelper') ?>
    
      <?php $this->loadBlock('mainbody') ?>
    
      <?php $this->loadBlock('spotlight-2') ?>
    
      <?php $this->loadBlock('footer') ?>
    
    </div>
    
    </body>
    

    then apply this new layout to your new template style


    1. Screenshot_1-1
    fbernardello Friend
    #927232

    Dear @pavit,
    thank you very much for your help.
    I did it, and it’s working. Unfortunately it’s not solving my problem 🙁

    I try to explain my problem:
    The new version of the component I’m using for mail-forms gives a problem with the Date box used in the header. Ex. http://www.epadova.com/contatti.htm

    To solve this, I created a new template, following your instructions, and this is working as expected, for example in this page: http://www.epadova.com/riferimenti.htm

    On contacts page (http://www.epadova.com/contatti.htm) even if I set the new template on his menu, the date is displayed again, giving a problem with the mail form.

    Could you help me understanding why the date is still appearing?

    Thanks in advance,
    Federico

    pavit Moderator
    #927260

    Hi there

    I think that your problems are coming from sh404 component that is storing cached urls so all new changes are not taken by the website

    I tried to remove the blocks from your header-contact file and changes are reflected correctly on the page riferimenti.htm but not in contatti.htm so problem is not in to the template settings but in a wrong configuration of your cache that is combining jchoptimize and sh404 so i think your website is making a bit of confusion managing cached versions.

    P.S

    I Created a new menu item named contatti-new and as you can see now is taking my old configuration ( the one without date block i used to test new layout )

    fbernardello Friend
    #927469

    Good morning @pavit,
    thanks a lot for your check.
    You’re definitly right, the problem is related to sh404.
    I didn’t realize it since you mentioned the component 😉

    Grazie!
    Federico

    fbernardello Friend
    #927567

    Dear @pavit,
    with the new copy of the template, I’m having on sidebar position the same background problem I’m having on banner-1 position.
    I’m trying to investigate, but I can’t understand "where" the missing attribute has to be set.
    See as example:

    1: http://www.epadova.com/storia-di-epadova.htm (contacts template)
    2: http://www.epadova.com/riferimenti/contatti.htm (tefault template)

    In the first case, the grey background reachs the bottom of the page, in the second one it doesn’t.
    In the first case I find the row

    class="col t3-sidebar t3-sidebar-right col-md-3 " "style="min-height: 6726px;"

    In the second case the attribute is not set.
    This can’t be a fixed value, since if you check a different page (ex. http://www.epadova.com/federico.htm) it is different, so it is automatically set.

    Where could it be????

    Regards,
    Federico

    fbernardello Friend
    #927583

    I found it. 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 6 replies, has 2 voices, and was last updated by  fbernardello 8 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum