Creating full Gallery wrapper

ZagadkaVolya
ZagadkaVolya's picture

Joined: 2014-08-21
Posts: 5
Posted: Mon, 2014-08-25 10:13

What I am planning to do - and after looking over the on-site tutorial/guide I don't know how to do without breaking the page - is just plop in a header and footer wrap. That's it, 2 include files around the Gallery code. My usual page structure goes something like

<?
	$title = "Page Title";
	include "./shared/header.inc";
?>

Page HTML

<?
	include "./shared/footer.inc";
?>

Where header.inc includes the CSS file. The structure puts the wrapper as

<doctype>
<html>
   <head meta, link, etc>
   <body>
      <top art and menu>
      <div start for the page>

Page HTML

      <close page div>
      <copyright footer div>
   </body>
</html>

So I just want to have that header and footer replace or wrap around the default ones, but I don't want to break page.html.php

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Tue, 2014-08-26 16:05

Depends on your theme.

There's a module for a custom header inserts: http://codex.galleryproject.org/Gallery3:Modules:custom_header

If that doesn't work, look in your theme's page.html.php file (in the theme's "views" folder).

As always, be sure to fully back up before playing around.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2014-08-27 16:44

Create a copy of the theme that you desire.
http://codex.galleryproject.org/Gallery3:Themes#Duplicate_and_deploy_your_copy_of_the_default_theme

Edit page.html.php in your themes view directory. remove the code that your .inc file includes like <doctype> <html> etc that your file will add. That will make sure that there is no duplication of tags that your inc file adds that the page.html.php file adds as well. Same for the footer and closing tags.

If you get stuck post some code or a link to the site in question.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team