Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] Help changing the title class?


  #1  
Old Jun 10, 2011, 06:12 AM
Tim F
 
66 posts · Jul 2009
Hey all,

I am trying to get my posts set up properly for Google rich snippets markup. In Googles preview tool, I am getting some error messages including 'Missing required field "entry-title".' A bit of research seems to indicate that I need to add the class entry-title to the post titles existing class.

I think I need to change this in bfa_post_parts.php but I can't see where the class for the post title is defined. The H tag wrapping the_title looks like this <h<?php echo $bfa_ata['h_posttitle']; ?>> - am I right in assuming that I need to find h_posttitle in another of the theme files and edit the class there? Or am I going in totally the wrong direction?
  #2  
Old Jun 10, 2011, 06:39 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
This is really not theme related but a quick Google search found this article on add that capability and from what I found the SEO Ultimate plugin offers that functionality as well but I have not tested.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Jun 10, 2011, 06:43 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
so do you need the class added to the h1/2 - ie <h2 class="xxxxx">

on a multipost page, the 'title' is a link, so it is in
HTML Code:
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php $bfa_temp_title ?>">
if you are using the ATO post options, you can have different titles hence the complicated code there.

but if you just want top add it to the <h1/2... change the line
HTML Code:
		<h<?php echo $bfa_ata['h_posttitle']; ?>><?php 
to
HTML Code:
		<h<?php echo $bfa_ata['h_posttitle']; ?> class="xxxxx"><?php 
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Jun 10, 2011, 06:48 AM
Tim F
 
66 posts · Jul 2009
That was it, many thanks!

Larry thanks for that link, there's some bits in there I need to get other parts marked up properly.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to remove Title Container from a single widget? (create ID or Class?) davidsteinmusic Atahualpa 3 Wordpress theme 4 Oct 2, 2010 12:58 AM
changing post title to h4 Tnesse Center area post/pages 0 Aug 6, 2010 08:03 AM
Changing the HTML Title Ummon Forum How-To 1 May 20, 2010 07:17 PM
Changing the color of the Blog Title JCCharles Header configuration & styling 1 Dec 18, 2009 12:12 PM
changing title's font agen.nguping Header configuration & styling 3 Apr 23, 2009 05:41 PM


All times are GMT -6. The time now is 10:14 PM.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.