Jump to content


Photo
- - - - -

Change Title Object Class

box title callout title

Best Answer Danny , 13 December 2012 - 11:40 AM

Hi,

 

Box titles use h3 tags, if you wish to change the tag you will need to create a child section and customise the code, changing the h3 tag to whatever you like.

Go to the full post


  • Please log in to reply
8 replies to this topic

#1 benz_admin

benz_admin

    Advanced Member

  • Members
  • 65 posts
  • Country: Country Flag

Posted 12 December 2012 - 12:08 PM

Hi to all,

on my HomePage

Please Login or Register to see this Hidden Content

I have too many headlings

 

I would like to change the box title and callout title in any page of my site

 

I tried to insert on css

 

#site .fboxtitle {
    font-size: 1em;
}

 

to change box title class but it still on H3 tag

 

How can I modify the class of box and callout titles removing headlings tag??

 

 

 



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 15891 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 12 December 2012 - 01:05 PM

Hi,

 

I am not sure what you're trying to change can you provide a screenshot please. Also, you're attempting to make changes to your sites CSS, when you have both Cloudflare and W3 Total Cache enabled.

 

You only activate cache plugins once you sites design has finalised, or know what you're doing and how to use the plugin correctly.



#3 benz_admin

benz_admin

    Advanced Member

  • Members
  • 65 posts
  • Country: Country Flag

Posted 12 December 2012 - 03:28 PM

When I scan my home page with

Please Login or Register to see this Hidden Content

it shows that I have too many headings on it.

All titles of my boxes (i.e. Eventi a Pesaro, Come Mangiare a Pesaro, Hotel a Pesaro, etc) have the H3 tag

The callout's headers have the same problems: are H2 subtitles

 

I have about 20 headings on my home page so my google ranking has dropped!!

 

I'd like to remove the tag H2 or H3 from box title and callout header



#4 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 13 December 2012 - 02:22 AM

Hi there, the css to change the title would be

 

Please Login or Register to see this Hidden Content

But as far as I'm aware this won't edit the tag label, only the size of the font inside the tag.



#5 benz_admin

benz_admin

    Advanced Member

  • Members
  • 65 posts
  • Country: Country Flag

Posted 13 December 2012 - 11:13 AM

Thanks James, but I won't edit the font size.

I need to remove the tag label...



#6 Danny

Danny

    Is Awesome!

  • Moderators
  • 15891 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 13 December 2012 - 11:40 AM   Best Answer

Hi,

 

Box titles use h3 tags, if you wish to change the tag you will need to create a child section and customise the code, changing the h3 tag to whatever you like.



#7 benz_admin

benz_admin

    Advanced Member

  • Members
  • 65 posts
  • Country: Country Flag

Posted 13 December 2012 - 01:01 PM

Thanks for your replys Danny.

I post how I solved for all who will have my problem

 

In wp-content>themes>pagelines>sections>boxes i find the section.php and it contains this line:

$title = do_shortcode(sprintf('<div class="fboxtitle"><h3>%s</h3></div>', $title_text));

 

just remove <h3>....</h3> and replace with <span style="font-variant: small-caps">...</span> if you want keep the small-caps font style

 

obviously It remove the h3 label from all boxes in the sites. But it was that i wanted



#8 Danny

Danny

    Is Awesome!

  • Moderators
  • 15891 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 13 December 2012 - 01:06 PM

OK, thanks for sharing but remember that when making changes to sections you need to create a child section otherwise when an update is released, these changes will be removed.



#9 benz_admin

benz_admin

    Advanced Member

  • Members
  • 65 posts
  • Country: Country Flag

Posted 13 December 2012 - 01:13 PM

Damn! So when I update to PageLines Framework 2.3.8 I will lost it.

Is a hard work create a child boxes???

I do not know where to start...