How i can change the width of a module?

More
10 years 1 month ago - 10 years 1 month ago #542 by Webpiper
Hallo,

i need help! :(

I want to change the width and the position of the headsearch, because I want to put a “Custom HTML”-Module there. It should be a H1-Header.

Sorry for the bad englisch, I´m a German. :D
Last edit: 10 years 1 month ago by admin.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago - 10 years 1 month ago #543 by admin
Hello
1-first open templates\maxx\tpls\blocks\header.php and find the codes below
Code:
<!-- LOGO --> <div class="span8 logo"> <div class="logo-<?php echo $logotype ?>"> <a href="<?php echo JURI::base(true) ?>" title="<?php echo strip_tags($sitename) ?>"<?php echo $logoimage ?>> <span><?php echo $sitename ?></span> </a> <small class="site-slogan hidden-phone"><?php echo $slogan ?></small> </div> </div> <!-- //LOGO --> <?php if($this->countModules('head-search or languageswitcherload')): ?> <div class="span4 header-right"> <?php if ($this->countModules('head-search')) : ?> <!-- HEAD SEARCH --> <div class="head-search<?php $this->_c('head-search')?>"> <jdoc:include type="modules" name="<?php $this->_p('head-search') ?>" style="raw" /> </div> <!-- //HEAD SEARCH --> <?php endif ?>

2-Replace them with that codes
Code:
<!-- LOGO --> <div class="span4 logo"> <div class="logo-<?php echo $logotype ?>"> <a href="<?php echo JURI::base(true) ?>" title="<?php echo strip_tags($sitename) ?>"<?php echo $logoimage ?>> <span><?php echo $sitename ?></span> </a> <small class="site-slogan hidden-phone"><?php echo $slogan ?></small> </div> </div> <!-- //LOGO --> <?php if($this->countModules('head-search or languageswitcherload')): ?> <div class="span8 header-right"> <?php if ($this->countModules('head-search')) : ?> <!-- HEAD SEARCH --> <div class="head-search<?php $this->_c('head-search')?>"> <jdoc:include type="modules" name="<?php $this->_p('head-search') ?>" style="raw" /> </div> <!-- //HEAD SEARCH --> <?php endif ?>
3-That will narrow logo space 4/12 and the increase the head-search area to 8/12
Last edit: 10 years 1 month ago by admin.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #544 by Webpiper
Thank you! It works! :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.323 seconds