Peter Boosten
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Creating links for my navigation in the header graphicchange this
#menu li.page_id=2 {into this
#menu li.page-id-2 {(no underscores, no equal signs)
Peter
Forum: Themes and Templates
In reply to: Trying to Avoid duplication in theme file layoutWe’re on a different wavelength, I guess:
a. the sidebars already are predefined in functions.php, or otherwise you would not be able to add widgets to them.
b. the sidebar (and number of sidebars) is dependent on the page you’re currently viewing, so that’s a variable factor.
The last part is a perfect application for custom variables.
How about the content (in page10center for instance): is that static content, or also a ‘sidebar with widgets’?
Peter
Forum: Themes and Templates
In reply to: Creating links for my navigation in the header graphicAll those li’s have their own class (page-item-2, page-item-3, etc)
example:
#menu li.page-item-2 { top: 100px; left: 10px; }Peter
Forum: Themes and Templates
In reply to: How to remove border on gallery images???nope, the index.php in your theme directory (sorry, should have mentioned that).
Peter
Forum: Themes and Templates
In reply to: Trying to Avoid duplication in theme file layoutbut wait…. backup.
Widgets are assigned to sidebars, which are then inserted in templates.
That means that you have a certain set of sidebars, and the widgets are assigned to these sidebars from the management console.
From your page templates you insert these sidebars, depending on the page number, right?
But I now see your problem: the content itself is also included.
I still think this can be done via custom fields, but it’ll take a bit more work than I anticipated.
Peter
Forum: Themes and Templates
In reply to: Creating links for my navigation in the header graphicForum: Themes and Templates
In reply to: How to remove border on gallery images???So no plugin that could cause this 🙂
And in your index.php?
Search for this:<style type='text/css'> #gallery-1 { margin: auto; } #gallery-1 .gallery-item { float: left; margin-top: 10px; text-align: center; width: 100%; } #gallery-1 img { border: 2px solid #cfcfcf; } #gallery-1 .gallery-caption { margin-left: 0; } </style>Peter
Forum: Themes and Templates
In reply to: Creating links for my navigation in the header graphictry first (with words) to position them. We can always make them ‘invisible’.
Peter
Forum: Themes and Templates
In reply to: Trying to Avoid duplication in theme file layoutIf it’s only that number ’10’, that can easily be replaced by a variable (which could come from a custom field).
<?php include(TEMPLATEPATH."/RSSPages/Page".$number."Left.php");?>How many different combinations of sidebars do you have?
Peter
Forum: Themes and Templates
In reply to: Creating links for my navigation in the header graphicoke, most of the xhtml is already in place, now you just want to map the top menu on the graphics.
The only place to do that is in your stylesheet, so do not change anything to your xhtml anymore (except for creating another list item for home).
What I called ‘#nav li’ is in your case ‘#menu li’
Peter
Forum: Themes and Templates
In reply to: Trying to Avoid duplication in theme file layoutEach template is exactly the same inside except for the page number. The page number is then used to define the left, middle and right sidebar widgets for that page.
In that case you gotta tell us more about this page number you’re referring to.
Maybe post one of those page templates on pastebin.
Peter
Forum: Themes and Templates
In reply to: Creating links for my navigation in the header graphiclink to your site?
Peter
Forum: Themes and Templates
In reply to: Trying to Avoid duplication in theme file layoutSo if I understand this correctly, there are 100 pages, with all their own page-template, and the one differentiating factor is one number.
Looks like a perfect application for custom fields to me.
Peter
Forum: Themes and Templates
In reply to: Creating links for my navigation in the header graphicheader.php is the normal place to put navigation bars in, but YMMV.
Peter
#sidebar ul ul li, #sidebar ul ol li { font-size:13px; letter-spacing:0.2em; margin:3px 0 0; padding:0; }(style.css line 465)
Peter