Forum Replies Created
-
AuthorPosts
-
JohnParticipant
Posh John,
The way to paste code here that works for me is to switch to the HTML tab, paste in your code, make sure there are no empty lines, select the code, click the "code" button in the toolbar, and you're good to go. That should add an opening and closing "code" tag on either end of your code, which you can see in the HTML editor but not in the Visual editor.
I've found that I can switch back and forth from Visual to HTML and the code stays like it should.
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantI would take a look at the code you used to add the new widget area, and that may be in both functions.php and home.php. You can paste the code here and I'll look it over for you. (Alternatively you can email those two files to me at john @ blackhillswebworks dot com, which might be easier than pasting the code here in the forum.)
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantGive this a shot (by adding it to your style.css)
.featured-bottom .featuredpost .post {
float: left;
padding: 0 10px 10px;
width: 46%;You'll probably want to tweak the padding and width to get it looking just right.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipanteinstein,
Are you wanting an image slider like what is on many home pages these days? Or a way to present a gallery of images as a slideshow? Maybe if you posted a link to an example of what you're looking to do...
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantPosting the URL of your site would help us help you.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantHold off on that 100% width...
I just checked the Adorable demo theme and she has the #sidebar DIV below the #content DIV. Your site has the #sidebar DIV inside the #content DIV.
Perhaps that got moved when you added the widget area? You may want to change that back to the original structure rather than changing the CSS which I mentioned in my previous post.
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantYou're welcome!
RE the sidebar:
.content-sidebar #content, .sidebar-content #content {width: 100%;}
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantHey Erik,
Add this to your style.css:
#home-featured .featured .widget {width: 33%;}
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantKendra,
You've got two DIVs with the same ID of "featured-top", one inside the other - you should only have one ID per page. If you change that inner DIV to a different ID, or better yet make it a class, I think you'll find your answer.
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantOh, and these two Codex articles on categories should be helpful:
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantKent,
I would try this:
Make a copy of page.php from your Genesis directory, and rename it category.php
In that file, above the ending genesis(); function, add this code:
if is_category( 'players' ) {
// Customize the Loop
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'players_category_order_custom_loop' );
function players_category_order_custom_loop() {
global $paged;
$args = array( 'order' => 'ASC','orderby' => 'name','paged' => $paged );
// Accepts WP_Query args (http://codex.wordpress.org/Class_Reference/WP_Query)
genesis_custom_loop( $args );
} // EndΒ players_category_order_custom_loop
} // End is_category( 'players' )You could clean that up with some line breaks and indenting, but the code editor here won't let us do that.
You may also want to flush your permalinks: go to Settings > Permalinks and click "Save Changes"
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantin_category lets you check if a post or posts are in a specific category, then you can do stuff with those posts.
is_category checks if a specific category (or categories) archive is being displayed, then lets you do stuff with those categories.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantShoot me an email at [email protected] if you want me to take a closer look.
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantkatmmad,
You've got some serious script issues on that website. If you check it in Google Chrome with Tools > JavaScript console enabled you'll see a list of warnings and errors.
I checked the first post you linked to in this thread using Firefox, disabled all JavaScript using the Web Developer Toolbar, refreshed the page and your post appeared like it should. I did this in Chrome as well and used the Tools to disable JavaScript and the post appeared.
I'd take a close look at the advertising scripts you're using.
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantIt looks like if you're using an array you need to NOT put the single-quote around the ID. Check out the example from the Codex:
is_category( array( 9, 'blue-cheese', 'Stinky Cheeses' ) );
// Returns true when the category of posts being displayed is either term_ID 9, or slug "blue-cheese", or name "Stinky Cheeses".
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantHi Kent,
When in doubt, I nearly always go to the WordPress Codex and search for the function or whatever it is I have a question on. I think you'll find your answer on this Codex page in the examples:Β http://codex.wordpress.org/Function_Reference/is_category
And for inserting code here in the forums, after I type or paste it in I switch over to the HTML tab, select the code, and click on the "code" button in the toolbar. Your code needs to be single-spaced for it to work, but I've found that I can switch back and forth from Visual to HTML and the code styling stays there. Here's an example (from that Codex page):
is_category( '9' );
// When the archive page for Category 9 is being displayed.John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantExcellent - harness those powers!
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantGo with Nick's option - better to remove it than hide it.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantThe simplest way to remove that page navigation would be to add this code at the bottom of your style.css file:
#content .navigation {
display: none;
}
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google πJohnParticipantA link to the site would help us help you...
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google π -
AuthorPosts