StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 06-15-2011, 01:45 PM
noxbane noxbane is offline
Registered User
Pro Plus Member
 
Join Date: Nov 2010
Posts: 139
Default How Does Studiopress.com Site Create The Page-Title Area?

If you look at the redesigned Studiopress.com, on each page, it has a larger, all-in-caps title on the left and a green "Learn More About Genesis" button on the right in a div called "page-title". It then has the actual page title below this area. In effect, each page actually has two different titles.

My question is how did they create this page-title area with the dynamic title? I understand how to insert the actual div and static content via hooks, but how do they make the title inside the page-title div dynamic, especially since it exists outside the content area, and therefore outside the Loop?
  #2  
Old 06-15-2011, 02:59 PM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

the_title() the WordPress tag for displaying the title, works outside teh loop. This is a section that was added to the site via a hook then styled to create the look you see.
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

  #3  
Old 06-15-2011, 04:01 PM
noxbane noxbane is offline
Registered User
Pro Plus Member
 
Join Date: Nov 2010
Posts: 139
Default

Ah okay I see, I was thinking it had to be used in the Loop. I understand how to add my sections and style it.

A followup to my question, for example on this page http://www.studiopress.com/themes you have the primary title of "Wordpress Themes" and the secondary title of "Check Out These Amazing Designs". If "Wordpress Themes" is "the_title()" then where is the secondary title coming from? The secondary title is in the section where Genesis normally outputs the actual title (<h1 class="entry-title">) .

Are they checking for a certain title and then filtering it using the genesis_post_title_text filter (thats my inexperienced guess)?
  #4  
Old 06-15-2011, 04:43 PM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

There is a wide variety of ways including page specific coding, but the simple solution is just using custom fields.
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

  #5  
Old 06-15-2011, 05:39 PM
noxbane noxbane is offline
Registered User
Pro Plus Member
 
Join Date: Nov 2010
Posts: 139
Default

Quote:
Originally Posted by NicktheGeek View Post
There is a wide variety of ways including page specific coding, but the simple solution is just using custom fields.
Ah custom fields, of course, of course. I should have thought of that. Thanks for the assist Nick.

By the way, I just started reading your Genesis Explained series. Good stuff.
  #6  
Old 06-15-2011, 09:45 PM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

you're welcome

Since this is resolved I'm going to close this thread
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a Site Map page?? HING PONG TAY General Discussion 7 12-22-2009 12:00 PM
How to Create an Archive Page For Your Site...+V tutorials General Discussion 1 10-06-2009 11:54 AM
How to Create a Blog Page on Your Site mpritchard General Discussion 6 08-27-2009 09:55 AM


All times are GMT -5. The time now is 08:27 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.