Peter Boosten
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Why split divs between header and pageThe trick is to code as less as possible redundant code.
The header.php is called on each and every post/page, and it makes sense to put code you require on all those pages (like page.php, single.php, index.php, category.php, etc) in the header.php.
I for one would close the div I opened in header.php in the footer.php, btw.
Peter
Forum: Themes and Templates
In reply to: “Not Found” page when I click on post titleDid you change something in the permalink settings?
Peter
Forum: Themes and Templates
In reply to: Adding custom field link to bottom of post<a href="<?php echo get_post_meta( $post->ID, 'link', true ); ?>">Source</a>Peter
Forum: Themes and Templates
In reply to: Adding custom field link to bottom of post<a href="url"><?php echo get_post_meta( $post->ID, 'link', true ); ?></a>Where does the url come from? I would have expected something like:
<a href="<?php echo get_post_meta( $post->ID, 'link', true ); ?>">link</a>in your case. What exactly do you want the title to be?
To move it beside the ShareThis, just keep it within the same p tag.
That could be quite a challenge, since this link probably is coming from a plugin, right?
Look here for some more examples.
Peter
Forum: Themes and Templates
In reply to: Using a custom field in CSSThe trick would probably be to use inline styles.
Peter
Forum: Themes and Templates
In reply to: Getting pages by namechange the slug of that page to 1.
Peter
Forum: Themes and Templates
In reply to: css txt highlight roll-overI see things are not going right… let me explain:
Now you have this:
<ul> <h1> <a></a> <li><a></a></li> <li><a></a></li> <li><a></a></li> </h1> </ul>This is not good coding, and not allowed in strict xhtml, since an unordered list (
<ul>) shouldn’t contain anything else than list items (<li>).So I proposed this structure:
<h1> <ul> <li><a></a></li> <li><a></a></li> <li><a></a></li> <li><a></a></li> </ul> </h1>or:
<ul> <li><h1><a></a></h1></li> <li><h1><a></a></h1></li> <li><h1><a></a></h1></li> <li><h1><a></a></h1></li> </ul>Hope this clarifies my previous statement.
Peter
Forum: Themes and Templates
In reply to: Getting pages by nameAre those individual courses pages as well?
In that case you should create them as sub pages of the courses page.
Look for an example here: http://www.boosten.org/books and then click one of the books and watch the url.
Peter
Forum: Themes and Templates
In reply to: css txt highlight roll-overno, move it above the
<ul>statement, and the closing tag</h1>below the closing</ul>Then put this part between
<li>and</li><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a>Peter
Forum: Themes and Templates
In reply to: css txt highlight roll-overeither in your header.php or your index.php, starting with
<ul id="navlist">Peter
Forum: Themes and Templates
In reply to: Getting pages by namecourses is a category?
Peter
Forum: Themes and Templates
In reply to: css txt highlight roll-overWe should probably start with cleaning up your xhtml. The suggestion of miocene22 is not that bad, but it won’t work for your code.
If you add
display: block;to your anchor link tags (<a>), then your menu items will be displayed under vertically, not horizontally.To correct that, you would have to float your list items left, but since the first anchor link isn’t a list item, it won’t work.
You also should move the
<h1>tag outside the<ul>, or in each<li>.Peter
Forum: Themes and Templates
In reply to: How to build this in WP@kdkaushik -> I can only find articles, no scripts for this matter?
He (or she) is trying to sell himself (promoting his paid services, however this is not allowed in this forum)
Peter
Forum: Themes and Templates
In reply to: Everything is centredPerhaps I should upload the theme again…
Probably a good idea.
Peter
Forum: Themes and Templates
In reply to: Everything is centreddid you alter some of the div’s?
For instance, I can see a div with id headerimg, however I cannot find that id in your stylesheet.Peter