Index

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Wed May 15, 2013 6:38 am
Hello...

How can i access the index.php so that i can do some changes that i want to ?

Thank you...!
User avatar
Junior Boarder

GK User
Wed May 15, 2013 7:08 am
Hi there,

Technically you should not modify index.php as it is a core joomla file.

If you need to make changes to layout please see following folder / files depending on template you are using and changes you are trying to make.

/templates/gk_template_name/layouts/*

See you around...
User avatar
Platinum Boarder

GK User
Thu May 16, 2013 1:09 pm
So what if i want to add potitions to the tamplate? Like for example advertisement banners, left and right outside of tamplate dimensions?
User avatar
Junior Boarder

GK User
Thu May 16, 2013 1:11 pm
For adding positions please edit "/templates/gk_template_name/layouts/default.php".

Few templates contains layout files as blocks which you will see in /templates/gk_template_name/layouts/blocks".

See you around...
User avatar
Platinum Boarder

GK User
Tue May 28, 2013 9:00 am
Hello again ..and thanks for the previous help but i want to ask you stg about the position of my new position... How do i know where my new position is ?.. What i mean ... i want to make a module position outside of the main body for banners or ads or anything like that etc... do i go with position(for expample...position:0 0 0 0) - from css files...or is any other way to do it?

Sorry for my ignorance but i m a newbie at joomla... !
User avatar
Junior Boarder

GK User
Tue May 28, 2013 3:38 pm
See following links for adding new positions.
http://www.gavick.com/documentation/joo ... -position/
Just a little correction in above page. Please in last final code replace ’ with ' as it seems that should be fixed.
So where you see ’ replace it with '
and these ” with ''.
Suppose you have added new positions and added and enabled modules in your new positions then depending which div id you have used, use following css.

Code: Select all
#rightAds { width:120px; height:600px; position:fixed; right:0; top:0; }
#leftAds { width:120px; height:600px; position:fixed; left:0; top:0; }

So
Your left ads stick to positions at left 0 top 0.
Your right ads stick to positions right 0 top 0.

You might need to change div id name and as well as adjust width height to suit your needs.
In case users browser window width is lesser than your website + your ads width then you should disable ads so it doesn't show in your main content.

Example.
Lets suppose your main content width is 1000px
Your ads width 120px + 120px = 240px
Total width = 1240px
So if browser width is 1240px or more we will display ads if its less then 1200px we will hide them.

So you can use below css which will work in both normal browser and device specific such as tablets.
Code: Select all
@media only screen and (min-width: 1240px), only screen and (min-device-width: 1240px) {
         #rightAds { width:120px; height:600px; position:fixed; right:0; top:0; }
         #leftAds { width:120px; height:600px; position:fixed; left:0; top:0; }
   }
@media only screen and (max-width: 1200px), only screen and (max-device-width: 1200px) {
         #rightAds, #leftAds  { display:none; }
   }


See you around...
User avatar
Platinum Boarder


cron