Chip Bennett
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Clean Home theme no longer available for wordpress.org?The Clean Home Theme was suspended in the official WordPress Theme repository, due to a license policy violation. The “pro” version of this Theme has a license that is not GPL-compatible. Specifically, the usage restriction that differentiates the “pro” and “developer” versions of the Theme is not GPL-compatible:
This package is the same as the Pro Pack, but allows a developer to use our theme as the basis of any project.
Forum: Fixing WordPress
In reply to: Add twitter code to a widgetalthough i would like to ask a question, how can i apply a independent style to a specific widget.
That’s actually why I directed you toward my Plugin. 🙂
If you look at this bit:
function widget_cbnet_twitter_widget() { $widget_ops = array('classname' => 'widget-cbnet-twitter-widget', 'description' => 'Widget to display Twitter widgets' ); $this->WP_Widget('plugin_cbnet_twitter_widget', 'cbnet Twitter Widget', $widget_ops); }You can see that WordPress will output a
.widget-cbnet-twitter-widgetclass that you can target for CSS styles specific to this Widget.Forum: Themes and Templates
In reply to: Genesis Settings disabledAs Genesis is a commercial Theme, you will need to consult the support offerings of the developer, StudioPress.
Forum: Themes and Templates
In reply to: How do I remove blogs from home page and put on a news page?Refer to the Creating a Static Front Page entry in the Codex.
Forum: Themes and Templates
In reply to: Coming from Expression Engine, need some guidance.In the second it states you can extra boxes to the publish pages/posts screen. Does that mean to say you would have them on every post/page screen?
You can define that however you need, depending on your use case.
Forum: Themes and Templates
In reply to: Coming from Expression Engine, need some guidance.Yes, you can do all those things with WordPress.
…possibly radio buttons to control if something is displayed in the template for that post/page, a unordered list of data, an extra textarea perhaps.
Those all sound like post custom meta data. I assume you’ve read the Custom Fields Codex entry. That page describes the manual approach to post custom meta data. However, you can implement post custom meta data in a more user-friendly manner, by adding custom meta boxes.
Forum: Themes and Templates
In reply to: Coming from Expression Engine, need some guidance.I don’t know the exact types of data. I more looking to find what is available. Perhaps you could explain these two types to me?
Again, that’s backwards. If you can describe what you’re trying to accomplish, I can help you determine the best approach.
What sorts of “custom fields” are you trying to add to posts and/or pages?
Forum: Themes and Templates
In reply to: Coming from Expression Engine, need some guidance.You’re still speaking in code terms. 🙂
Describe to me what kind of content you want to create/store, and how various content relates to other content. For example: some things are better as post meta data, whereas some things are better as taxonomy data, etc.
P.S. WordPress is a CMS. When used, it is always used as a CMS. 🙂
Forum: Themes and Templates
In reply to: Should I load my theme's options as a global?Personally, I use a global for my Theme options array.
Forum: Themes and Templates
In reply to: Coming from Expression Engine, need some guidance.Let’s start more high-level: can you describe – in human, rather than code, terms – what you’re wanting to accomplish? I think I understand what you’re saying, but I just want to be sure.
Forum: Themes and Templates
In reply to: grunge theme sidebarsTry W3Schools.com for basic CSS instruction.
Unfortunately, we cannot support Themes from sites that both violate the WordPress trademark and distribute non-GPL Themes.
Forum: Fixing WordPress
In reply to: Import fails to import photos attachmentsCathie,
Can you post a Pastebin of the exported XML file? I’d like to take a look at it, to see if I can find anything amiss.
Forum: Themes and Templates
In reply to: Post Formats, get_template_part & styling problemsBoth I guess. For example- a video post will have a video icon next to the title and will concentrate most on showcasing the video.
For CSS differentiation, ensure that you use the
post_class()template tag, which will enable you to take advantage of the post-format specific CSS classes that WordPress generates for the post container – such as.format-videoor.format-gallery.For even more CSS control, ensure that you use the
body_class()template tag, which will enable you to take advantage of the post-format specific CSS classes that WordPress generates for the HTML body tag – such as.single-format-videoor.single-format-gallery. for single blog post pages, and.term-post-format-videoand.term-post-format-galleryfor taxonomy archive index pages.I know how to do it using if/else in my loop but is there most manageable way to do it? like keep each different style in a defferent file (post-video.php,post-standard.php).
Now the real fun begins! One of the tricks of the trade is the quite handy
get_post_format()template tag, which you can use like so:get_template_part( 'post', get_post_format() );Which will get
post-video.phporpost-gallery.php, etc. Using this method will completely eliminate the need to use a bunch ofif/elsestatements, or aswitch, etc.Note that
get_post_format()returnsFALSEif no post format is set (i.e. for standard post format), so you can either have apost.phpas a fallback, or you can use an approach such as this one:$post_format = ( get_post_format() ? get_post_format() : 'standard' );…which will then cause this:
get_template_part( 'post', $post_format );…to get
post-standard.phpfor “standard” post formats.Forum: Fixing WordPress
In reply to: Add twitter code to a widgetSo what do you guys recommend me to do? i don’t really understand sorry.
I wrote a Twitter Widget, that might be instructive. Have a look at the code, and see if it helps. It is written using the Widgets API, which is the proper framework to use when developing custom Widgets.
Forum: Themes and Templates
In reply to: Post Formats, get_template_part & styling problemsDo you want to style them differently (i.e. CSS), or do you want to have a different markup/layout for each one (i.e. HTML)?