Include custom div-tag to my Template

Hello,

i am working on a Template for Dolphin 7.2, which is based on the EVO Template.

Now i need to know how to include a custom div-tag, that would enwrap the already existing "sys-main-logo","sys-main-menu" and "sys-sub-menu" div-tags. I know that each of those 3 divs has its own seperate template html file. But can please somebody tell me which file i need to edit, in order to enwrap these 3 divs in another div.

I have taken a picture for better understanding. The red, green and yellow marks represent the "sys-main-logo","sys-main-menu" and "sys-sub-menu" div-tags. The blue mark represents the div tag that i want to include.

Thanks in advance!

best regards,

mattdev

pic.jpg · 101.4K · 225 views
Quote · 1 Sep 2015

quick answer - create a page called custom.css and put in your new template css folder. Then create a page called _header.html and place in template main folder. Copy whats in the original _header.html file in to this file. Add this:


    <link href="templates/tmpl_custom_template/css/custom.css" rel="stylesheet"/>

to the end of this:

<script type="text/javascript">
        var oBxUserStatus = new BxUserStatus();
        oBxUserStatus.userStatusInit('<bx_url_root />', __is_profile_page__);
    </script>

 

Now, any custom css changes can be added to your custom.css file and all should be well.

 

Only thing is that now you have to find out where to put your beginning and closing for your new div

caredesign.net
Quote · 2 Sep 2015

The opening div tag goes in _sub_header.html after     __extra_top_menu__   and before  <div class="sys_main_logo">

Ex:

 __extra_top_menu__
<div class="blablabla">
<div class="sys_main_logo">

And

            <bx_injection:injection_sub_menu_before />
                __sub_menu__
            <bx_injection:injection_sub_menu_after />
        </div>
    </div>
</div>
</div>

 

The closing div tag goes at the very end of navigation_menu_sub.html

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 2 Sep 2015

thanks, this worked perfectly! 

 

P.S.: theres still one problem left, the submenu is optional. The Home Page for example does not have a submenu. Thus the custom div is not being closed on this page.

Quote · 2 Sep 2015

Ok i have put the closing tag into navigation_menu.html and now my custom div is always being closed.

Quote · 2 Sep 2015

sorry to bump a old topic but ive been searching for a few days now and nothing....

The issue is i want to remove the system main logo area and merge it into the system main menu.... Ive run through a couple of things ive found but nothing to my avail. If someone could help or point me in the right direction that would be great

Quote · 14 Jun 2016
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.