Chip Bennett
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Contacts page/Sidebar WoesYou’ll need to edit the custom contacts page template file,
page-contact.php, in order to remove the sidebar.Create a Child Theme, copy the
page-contact.phpinto your Child Theme, and then comment out or delete the call to<?php get_sidebar; ?>.Forum: Fixing WordPress
In reply to: Import fails to import photos attachmentsI’ve never had a single problem importing from a wordpress.com account. Can you provide an example of a WPCOM account from which you are unable to import/attach images?
Are you sure the images at the WPCOM account are actually attached to the posts, rather than linked?
Forum: Fixing WordPress
In reply to: is_page || in_pageAnd it seems to use style-1.css for both category 10 & 8, and then style-3.css for any other categories. Piece of #£%&!
Do any posts have both category 8 AND category 10?
Forum: Fixing WordPress
In reply to: is_page || in_pageTry this instead:
if ( is_category( 10 ) || ( is_single() && in_category( 10 ) ) {}…which is, of course, exactly what @alchymyth suggested 🙂
Another thing: where exactly do these stylesheets reside? Are they in the document root, or in the Theme directory? If they’re in the Theme’s directory, you’ll need to change this:
href="styles-1.css"…to this:
href="<?php get_template_directory_uri(); ?>/styles-1.css"Forum: Fixing WordPress
In reply to: is_page || in_pageThe
is_category()conditional tests to see if the current page is a category archive index page. Thein_category()conditional tests to see if the current post has the specified category.If
in_category()is used outside the Loop, then you need to pass the$postobject to it.It’s just different stylesheet links.
Can you describe – in human rather than code terms – what exactly you’re trying to accomplish/implement?
What exactly are you trying to do, and where exactly are you putting your code to implement what you’re trying to do?
Forum: Themes and Templates
In reply to: template home page missingAs this is a commercial Theme, you will need to consult ThemeForest for any Theme-specific support.
If you need to create a custom page template for your site front page, refer to the Codex for how to create one.
Forum: Themes and Templates
In reply to: stop login page loading non admin stylesThe login page returns false on
is_admin()because, well, the login page isn’t the admin area. It’s a boundary/gateway between the front end and the back end.To detect the login page, you can use the
$pagenowglobal, e.g.:global $pagenow; if ( 'wp-login.php' == $pagenow ) { // current page is the login page; // do something }So, for your script enqueue callback, simply change:
if ( ! is_admin() )to:
global $pagenow; if ( ! is_admin() && 'wp-login.php' != $pagenow )Forum: Themes and Templates
In reply to: template home page missing1) What Theme are you using?
2) What “home template” are you expecting to find?Forum: Themes and Templates
In reply to: Theme options is not displayed under appearanceAs Soundcheck is a commercial Theme, you will need to consult the support offerings of the developer, Press75.
Forum: Fixing WordPress
In reply to: Add twitter code to a widgetIt’s the default padding on your sidebar widgets that is causing the problem but, in order to target any new CSS at that specific widget, you’d need to add a new class to that custom(?) widget.
…which, really, is what I was getting at above, by asking for the
function widget()code. But, based on the Pastebin, I wonder if the OP isn’t actually using the Widgets API to create this Widget?Forum: Themes and Templates
In reply to: Enable click-through of images in post?Try a lightbox Plugin.
Forum: Themes and Templates
In reply to: Filter an arrayHave you tried the support offerings of StudioPress, since this function is part of the commercial Genesis Theme?
Forum: Themes and Templates
In reply to: Missing Template Selection on Page Attributes in WordPress 3.3.2Yeah, you’re going to have problems/unintended consequences if you try to
register_post_type( 'page' ), since that is already a core post type.Be sure to use your own, unique slug for your custom post type. I would stick with
'ompage'.Forum: Fixing WordPress
In reply to: Why not simple and built-in option for Hide/Display Date ?WordPress 3.4 is due out any time now.
Cool!
May I hope to download it tomorrow or after tomorrow? 🙂Umm… wrong topic? 🙂
Forum: Themes and Templates
In reply to: Missing Template Selection on Page Attributes in WordPress 3.3.2I’m sorry; I’m not following either of these:
“hierarichal => true” is in the functions.php file
As a part of what function? Without relevant context, it’s impossible to know what’s going on.
& if i switch over to Twenty Eleven Theme I do not see the new section with the pages in I wish to set templates for.
What new section? Are you not using Dashboard -> Pages to edit pages/page attributes?