tweaks to my layout
mikeflc
Joined: 2011-04-19
Posts: 7 |
Posted: Thu, 2011-04-21 21:37 | |||
just reinstalled G2 and basically have the layout how I want it, besides some minor tweaks. wondering the best way to shrink the gallery width to say 70%, while keeping my header unchanged (as in can I put a div somewhere or set left/right margins). if you look at the pic or use the link, you will see the album name shows twice, I'd like to remove the upper one in black, but I can't seem to find it in the .tpls those are my main bothers right now, i think I can get through the rest on my own, thanks http://www.floridalc.com/gall2/main.php edit to add: forgot to mention this is essentially the matrix theme
|
||||
Posts: 16504
Looks like you'd done just what you're asking for
____________________________________________
Like Gallery? Like the support? Donate now!
Posts: 1642
Great Job!
1. The album name in green can be changed/removed in each album in "Edit Albums -> General -> Title". The upper one in black is the breadcrumb which is switched on or off in "SiteAdmin -> Themes".
2. To do what you want with the gallery, look in your theme.tpl for the following:
a. <div {g->mainDivAttributes}> - Edit this to be <div {g->mainDivAttributes}><div class="YOURCHOICEOFNAME">
b. <div class="footer"> - Edit this to be </div><div class="footer">
c. Add YOURCHOICEOFNAME as a class in your css file and style as you wish
There is also the option of using a tool for embeding G2 developed by one of the members here although it looks like you have done the main job.
--
dakanji.com
Posts: 7
sorry I don't see the option to turn off that breadcrumb
not sure what you mean here, did I forget to close a div somewhere?, theres no highlighting in the editor i'm using right now so there may be some of that
yea I did get the table width part covered, thanks so far
edit:
I think I'm accomplishing this another way, admittedly your way seems better
Posts: 1642
I don't use matrix theme so it might not be an option with that theme.
The Smarty '{g->block type="core.BreadCrumb"}' is what renders the breadcrumb. Look in theme.tpl.
No. I suggested that you open a new div "<div class="YOURCHOICEOFNAME">" earlier which needs to be closed. I suppose the order in which you listed your queries/points explains the confusion.
--
dakanji.com
Posts: 7
ah that was her, thanks a bunch.
I think I can handle the rest now though I may come back later if i can't fix the slight formatting difference in my gallery header compared to the header in the rest of the site.
Posts: 1642
The embed tool linked earlier will ensure all common parts are consistent.
--
dakanji.com
Posts: 8339
there are a bunch of embed examples as well.
http://www.flashyourweb.com/gallery2/embed_samples/
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 7
I had tried the embed tool before I started, but I did something wrong and it didn't work, though I didn't really try hard because I feel like I learn more this way. I may give it another go.