sidebar tweaking
javapop
![]()
Joined: 2007-10-29
Posts: 31 |
![]() |
Moving to wordpress here from the old CSS site here and I can't figure out the way to get the admin related sidebar info to show up. Is there typically a place to include admin login? Is this controlled in the theme's theme.tpl file? I know you can only switch themes within admin menu. If I've missed anything clear in documentation, could you point me there? Thanks! |
|
ozgreg
![]()
Joined: 2003-10-18
Posts: 1378 |
![]() |
By Admin, you mean Site Admin??? Does your Wordpress User have Gallery2 Admin Rights?? |
|
javapop
![]()
Joined: 2007-10-29
Posts: 31 |
![]() |
I'm not sure if we set that up, I'm admin on the wordpress site; how is that set upp, in gallery2, or wordpress? I just checked, and it looks like I am... here's a screenshot: |
|
javapop
![]()
Joined: 2007-10-29
Posts: 31 |
![]() |
OK... just figured it out, I was logged in as admin... not my user with G2 privs... |
|
capt_kirk
Joined: 2006-01-24
Posts: 492 |
![]() |
You have it set up correctly on the WP/WPG2 side. Now, we need to look at your G2 theme. In gallery2/themes/your_theme_name/templates/, there should be a file called theme.tpl. You should have something like this <div class="gbSystemLinks"> {g->block type="core.SystemLinks" order="core.SiteAdmin core.YourAccount core.Login core.Logout" othersAt=4} </div> If not, try adding it. In the "Classic" theme, it's in the middle of this code: <div id="gsNavBar" class="gcBorder1"> <div class="gbSystemLinks"> {g->block type="core.SystemLinks" order="core.SiteAdmin core.YourAccount core.Login core.Logout" othersAt=4} </div> <div class="gbBreadCrumb"> {g->block type="core.BreadCrumb"} </div> </div> WPG2 will log you into G2 as an admin. The system links will show the Site Admin link, if you're logged into G2 as an admin, so once the above code is in your template file, you should be good to go. Kirk |
|
javapop
![]()
Joined: 2007-10-29
Posts: 31 |
![]() |
OK, looks like we are good there. One other thing... how exactly is the best way to remove most of the information in the actual gallery header area. [img]http://www.greenpeas.us/media/gallery_spacing.jpg[/img] Thanks again for your assistance! |
|
capt_kirk
Joined: 2006-01-24
Posts: 492 |
![]() |
You have to find it in the template files and move/remove it. Every theme is different in the way it lays out the template files, so it will vary from theme to theme. Kirk |
|
javapop
![]()
Joined: 2007-10-29
Posts: 31 |
![]() |
Hi Capt Kirk, I found the theme.css file listed: * Sections Would this area be referred to as gsNavBar? Thanks again! |
|
ClimbingMonkey
Joined: 2005-03-18
Posts: 62 |
![]() |
That CSS controls the look and feel of some of those header elements, but if you want to make them flat out go away you will have to modify the .tpl files as capt_kirk stated. If you look in your theme.tpl you will see some code like this: <div id="gsHeader"> <div id="gsNavBar" class="gcBorder1"> <div class="gbBreadCrumb"> This is a good place to start, and don't forget to backup the original file in case you break something! --------------------------------------------------- |
|
ozgreg
![]()
Joined: 2003-10-18
Posts: 1378 |
![]() |
The WordpressEmbedded Theme actually hides a lot of this type of information (you can see it in operation on my blog) |
|
javapop
![]()
Joined: 2007-10-29
Posts: 31 |
![]() |
ClimbingMonkey wrote:
I deleted the above info to get rid of the logo; but this is in the body area, at the top, I believe... |
|