Edward Caissie
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Changing my Blog Title to an imageYou’re welcome!
Forum: Fixing WordPress
In reply to: Navigation bar is ‘hiding’ beneath the bodyChanging the ‘margin’ property to
margin: 0 auto;will center the menu within its blockForum: Fixing WordPress
In reply to: Changing my Blog Title to an imageOK … look inside the head.php file for the above function call I mentioned; it appears to be on line 3 of that file.
You can try replacing that bit of code with an appropriate image link, such as:
<img src="<?php bloginfo('template_url'); ?>/img/headerimg.png" />Forum: Fixing WordPress
In reply to: Changing my Blog Title to an imageThe code you are referencing above is for the page title that appears in the top bar of your browser.
A link to your site and the active theme you are trying to edit would be useful in making suggestions, although you can start by looking for something like:
<?php bloginfo('name'); ?>… in your header.php file as this is a very common function call to display the blog name (title?) in a text format.
Forum: Fixing WordPress
In reply to: Navigation bar is ‘hiding’ beneath the bodyIf you look at line 18 in your style.css file you should see something similar to this:
#menu { background:none repeat scroll 0 0 #000000; height:32px; margin:130px auto 0; width:780px; }The issue with your navigation bar is likely the margin property, try something like this …
#menu { background:none repeat scroll 0 0 #000000; height:32px; margin:0 0 0 130px; width:780px; }Forum: Fixing WordPress
In reply to: Calendar bug?This is a known issue and is being addressed. Here is the ticket in trac that has to do with the Calendar issues: http://core.trac.wordpress.org/ticket/11414
Forum: Fixing WordPress
In reply to: Find Oldest Published PostOK, so this little bit of code has thrown me a bit of a curve ball …
The above code finds the first post; short of running the query twice, any ideas on how to include an additional
post_type, such as “page” in this query?I would like to avoid the following:
/* Get all posts */ $all_posts = get_posts('post_status=publish&order=ASC'); /* Get first post */ $first_post = $all_posts[0]; wp_reset_query(); /* required? */ /* Get all pages */ $all_pages = get_posts('post_status=publish&order=ASC&post_type=page'); /* Get first page */ $first_page = $all_pages[0];The result I am looking for is the first published “entry”, whether it be a post or a page.
Forum: Fixing WordPress
In reply to: Trouble with fontsThe theme you are using does not appear to have a style setting for the
wp-captionelement which is a WordPress “standard” style element.Although not written in stone, here is a “standard” sample of the wp-caption element(s):
.wp-caption {border: 1px solid #ddd;text-align: center;background-color: #f3f3f3;padding-top: 4px;margin: 10px; /* optional rounded corners for browsers that support it */ -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .wp-caption img {margin: 0;padding: 0;border: 0 none;} .wp-caption p.wp-caption-text {font-size: 11px;line-height: 17px;padding: 0 4px 5px;margin: 0;}You would also have to specifically edit the .wp-caption
font-sizeproperty to a different value than the current 11px (both in this sample and as inherited from the theme’s ‘.entry’ element around line 285 of the style.css file.Forum: Fixing WordPress
In reply to: Trouble with fontsIt is quite common for themes to have the image caption set with a “standard” WordPress style. You may need to address that in your style.css file before you can make changes in the editor that will display to your liking.
A link to your blog and/or theme may be helpful to provide additional ideas.
Forum: Fixing WordPress
In reply to: Making comments on “pagesThe theme that is apparently being used (SimpleX) does not currently support comments on “pages” … the code is simply not there.
You may be able to modify the theme files to add commenting to pages. Look in the single.php file and copy the “comment” code from there into your page.php file.
Be careful, and make sure to back up your original files!
Forum: Fixing WordPress
In reply to: How can I find out page id’s from the page menu?You can use the
get_page()function to find “all of the page’s details”Here is a link: http://codex.wordpress.org/Function_Reference/get_page
If you just want to have page, post, category, etc IDs showing in the administration panel there are several plugins that can help with that, try this search in the extend directory: http://wordpress.org/extend/plugins/tags/id
Forum: Fixing WordPress
In reply to: Avatar?Have you tried changing the image you are using via http://gravatar.com that is associated with the email address of the admin account you are using?
Forum: Fixing WordPress
In reply to: Remove Widgets from a single pageYou will likely have to edit your sidebar.php template file and use a conditional to test if you are displaying a page or pages.
Read this article for more details: http://codex.wordpress.org/Function_Reference/is_page
Forum: Fixing WordPress
In reply to: Display first 25 words of excerpt on index pageI would use CSS to style the <hr> myself, or create an hr class and use it instead of the inline properties.
… and there is no <h8> tag, see this article: http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.5
Forum: Fixing WordPress
In reply to: Getting rid of the sidebarYou’re welcome, I’m glad to help!