Skip directly to content

An Inside Look at the Omega Theme

on December 6, 2011 - 10:26pm

When people say "mobile first" in referring to web design & theming, it's not just a mentality or something people say in a "the way it ought to be" sort of sense. They literally mean, designing the mobile theme first, then adding on CSS for tablets, desktop, and wide desktop themes. In a technical sense, it means that the global.css that contains the basic design elements of the site is loaded no matter what device you are using to view the website. Then, CSS3 Media queries determine what the size of the window is and additional stylesheets will be tacked on; either "narrow", "normal" , or "wide" - depending on the width of the device.  The Omega Theme comes with built in CSS media queries that determine when to load specific stylesheets.

Read More

 

 

Comments

Hi Kendall,

You've done an excellent job on your site and tutorials. I am using an Omega subtheme. I don't like the default date format used for Comments, which reads like this: (Submitted by admin on Wed, 2012-10-10 15:07).  I want it to match my other custom date fields, which I set up for my blog postings.  I know how to add custom date formats via the Configuration page. In fact, I used my custom date fields already as fields in my content types. What I'm struggling with is the Comment Form and Comments section of the content type. The default date format displayed for each comment cannot be changed via content type fields or css alone.  I also want to add more fields to the default Comment Form if needed.  I'm thinking that the only way to do this is to edit the tpl.php files, but I don't want to edit the tpl.php files unless there's no other way. Will you recommend how I can update the default date format used for Comments and also how to add custom fields to the default Drupal Comment Form. If it involves updating the tpl.php files will you please let me know how this should be done with an Omega subtheme. Thank you!!  

Angelina

starryeyez024's picture

 

It sounds like what you are trying to do is beyond Omega (or any other base theme) but I think you can do it without creating a custom template (.tpl) file, which I try to avoid. I think you just need to install the Drupal Entity Module, and here is a brief Introduction to Entities. Also this is an excellent article, "Adding New Fields to Comments in Drupal 7" which I think this outlines what you are looking to do. 
 
Changing the date is pretty simple, go to yoursitename.com/admin/config/regional/date-time and change the medium date format to something else you prefer. You can also click on the format tab and add a completely custom format if you choose. Note that this will update the medium date format site-wide wherever it is used, but generally that is a preferred reaction since you likely want the date format style to be consistent. 

 
Also as a sidenote, you should probably look into the Display Suite module since that allows you to heavily customize node layouts, views layouts and more, without creating custom tpl files. It also goes hand in hand with the Omega theme.
 
Hope that helps. :)

Post new comment