header position

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Jun 17, 2013 9:26 am
Reply with quote
Report this post
hi, i'm using this nice template, i installed and made a lot of work, aniway i need to make a modify for to have exactly what i need
actually the header position is set to 1000 px and it appear in this way
actual.jpg



I need to add a html positio by a side of the header postion as u see in the following picutre, how can i do?.. tnx for ur work and ur support
EXAMPLE.jpg
User avatar
Gold Boarder

GK User
Mon Jun 17, 2013 11:02 am
Reply with quote
Report this post
Few things there needs to be done.
1. You need to create additional module position:
http://www.gavick.com/documentation/joo ... -position/
The module needs to be added just after
Code: Select all
<section id="gkHeader">

section in default.php.
I would suggest this code:
Code: Select all
       <?php if($this->API->modules('headeraside')) : ?>
       <aside id="gkHeaderAside">
          <jdoc:include type="modules" name="headeraside" style="<?php echo $this->module_styles['headeraside']; ?>" />
       </aside>
       <?php endif; ?>


2. You need to float current gkHeader module left, and set its height (in responsive design way):
Please edit: /templates/gk_bikestore/css/override.css and add at its end:
Code: Select all
#gkHeader {float: left;width: 70%;}

Remember to enable "CSS override" in template settings - advanced section.

3. You need to float your new module right and set its width in "responsive" way. I dont know what Id will You assign to it, for learning purpose lets assume its name is gkHeaderAside (as in 1 point code)... Add to override.css:
Code: Select all
#gkHeaderAside {float: right; width: 28%;}
User avatar
Moderator

GK User
Wed Jun 19, 2013 7:47 am
Reply with quote
Report this post
ok, i did all is written in the quide and all u said but the result is that, i see the space but i see not the new module with the new position.. why?

can u help me?

ScreenHunter_129 Jun. 19 08.45.jpg
User avatar
Gold Boarder

GK User
Wed Jun 19, 2013 8:31 am
Reply with quote
Report this post
Have You posted anything to that module (custom html for example)?
User avatar
Moderator

GK User
Wed Jun 19, 2013 8:35 am
Reply with quote
Report this post
yes i did... i made a new custom html moduel and activated, but nothing changes

i sent u in pvt message all detail, but now i replaced all php files because i had not answer, if u want i can make again the modify and show u, just tell me tnx
User avatar
Gold Boarder

GK User
Wed Jun 19, 2013 9:41 am
Reply with quote
Report this post
i sent you a pvt message with all detail... can u see?

tnx a lot
User avatar
Gold Boarder

GK User
Wed Jun 19, 2013 10:10 pm
Reply with quote
Report this post
ok, i got not an answer

i did all is written in the file and what u said.. but i continue to see not the new module in the new headerside position...

can somebody help me?

tnx
User avatar
Gold Boarder

GK User
Thu Jun 20, 2013 5:44 am
Reply with quote
Report this post
(...)
Sorry, I see You alreade posted me all details. Checking...
User avatar
Moderator

GK User
Thu Jun 20, 2013 5:57 am
Reply with quote
Report this post
You have made all almost right - except a little typo ;)

In default.php, You have placed correct code:
Code: Select all
<?php if($this->API->modules('headeraside')) : ?>
       <aside id="gkHeaderAside">
          <jdoc:include type="modules" name="headeraside" style="<?php echo $this->module_styles['headeraside']; ?>" />
       </aside>
       <?php endif; ?>

and defined module name as "headeraside", but in templateDetails.xml, You have placed:
Code: Select all
            <position>headerside</position>

See the missing "a"?
Now You have selected headerside as module position, and that why nothing was shown.

Ps - don't worry - typos happen, even to advanced developers, often when You are tired.
User avatar
Moderator

GK User
Thu Jun 20, 2013 8:06 am
Reply with quote
Report this post
omg.. sorry!!!!

what a stupid mistake i did!!!

tnx so much!!!!!!!!!!!
User avatar
Gold Boarder


cron