Tags:
create new tag
view all tags

SID-01954: Change height of logo

Status: Answered Answered TWiki version: 6.0.0 Perl version: 5.10.1
Category: CategoryTemplates Server OS: RedHat 6 Last update: 11 years ago

Hi, I am tweaking a twiki 6 upgrade. One problem is the height of my logo. My logo is a little taller than the allocated area. I have tried to change the height of the top bar by following the instructions on-line here: http://twiki.org/cgi-bin/view/TWiki/PatternSkinCustomization but I must be missing something. I created a file in the twiki/templates directory named view.myskin.tmpl and it looks like this:

%TMPL:INCLUDE{"view"}%
%TMPL:DEF{"topbardimensions"}%
#patternTopBar,
#patternClearHeaderCenter,
#patternClearHeaderLeft,
#patternClearHeaderRight,
#patternTopBarContentsOuter,
#patternTopBarContents {
        height:104px; /* top bar height; make room for header columns */
        overflow:hidden;
}%TMPL:END%

When I test it with?cover=myskin on the URL, the space at the top of the page looks right, but the logo ends up at the bottom of the page in both IE and firefox and the drop down menus on the top disappear in IE! Sorry...I am totally confused on the whole template thing. Does a customized skin overrule the default templates?

Thanks!

Julia

-- Julia Simmons - 2014-07-29

Discussion and Answer

Look into the twiki/templates/view.topmenu.tmpl skin template file of the TopMenuSkin. Clone it for your own skin, remove all CSS except for the ones that have height: 80px;, fix to the height you need, and prefix your skin in the SKIN preferences setting.

-- Peter Thoeny - 2014-07-29

Yay! Thanks!

-- Julia Simmons - 2014-07-31

-- Julia Simmons - 2014-07-31

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Change height of logo
SupportCategory CategoryTemplates
TWiki version 6.0.0
Server OS RedHat 6
Web server apache
Perl version 5.10.1
Browser & version IE 10 and Firefox esr 31
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2014-07-31 - JuliaSimmons
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.