Jump to content


Photo
- - - - -

How can I do different header style

header title style different

Best Answer integritymediacorp , 18 April 2013 - 02:34 PM

ok I solved by ContentBox, just paste CSS code here and I turned off all title on this page.

 

Thank you!

Go to the full post


  • Please log in to reply
7 replies to this topic

#1 integritymediacorp

integritymediacorp

    Advanced Member

  • Members
  • 35 posts
  • Country: Country Flag

Posted 17 April 2013 - 08:14 PM

Hi there,

 

I want to set up headers only for HomePage

Widget - <h3 class="widget-title"></h3>

PageTitle - <h1 class="entry-title pagetitle"></h1>

 

I need to remove from other pages.

 

Usual I just create a new php template and do a little bit php coding, but here I can't find template php..

 

Help!



#2 James B

James B

    Advocate

  • Moderators
  • 4979 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 17 April 2013 - 08:19 PM

Hi there, we don't advise editing core files as the changes you make will be wiped on update.

 

You could use css to achieve this. The home page has it's own class .home you could use that to set those items to display on the home page and then set them to display:none throughout the rest of the site.

 

However if you're comfortable with php and want to use that as a solution you could try using a wordpress hook/filter otherwise.



#3 integritymediacorp

integritymediacorp

    Advanced Member

  • Members
  • 35 posts
  • Country: Country Flag

Posted 17 April 2013 - 10:24 PM

ok I got it with widget titles.

 

but with separate page titles nothing,

 

I know they have different css:

 

Template | Default = .default .page-template-default
Template | 1 = .alpha .page-template-page-alpha-php
Template | 2 = .beta .page-template-page-beta-php
Template | 3 = .gamma .page-template-page-gamma-php
Template | 4 = .delta .page-template-page-delta-php
Template | 5 = .epsilon .page-template-page-epsilon-php
Template | Example = .example .page-template-page-example-php

 

for example I need to leave my default css with title and make a "display:none" for other template

 

My code for Template 1 is:

 

Please Login or Register to see this Hidden Content

for other pages:

 

Please Login or Register to see this Hidden Content

where is my mistake?



#4 James B

James B

    Advocate

  • Moderators
  • 4979 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 17 April 2013 - 10:53 PM

Hi there,

 

I've just tested with the below and it's worked. You'll need to put in a display value for the top piece of code.

Please Login or Register to see this Hidden Content



#5 integritymediacorp

integritymediacorp

    Advanced Member

  • Members
  • 35 posts
  • Country: Country Flag

Posted 18 April 2013 - 05:41 AM

 

Hi there,

 

I've just tested with the below and it's worked. You'll need to put in a display value for the top piece of code.

Please Login or Register to see this Hidden Content

 

nope, it's show the same title everywhere.. what about this code .hentry .entry-title?



#6 Danny

Danny

    Is Awesome!

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

Posted 18 April 2013 - 07:20 AM

You would do it like this:

 

 

Please Login or Register to see this Hidden Content

I have already tested the code and can confirm it works.



#7 integritymediacorp

integritymediacorp

    Advanced Member

  • Members
  • 35 posts
  • Country: Country Flag

Posted 18 April 2013 - 02:30 PM

 

You would do it like this:

 

 

Please Login or Register to see this Hidden Content

I have already tested the code and can confirm it works.

 

 

I don't know why?

but when I try this code, everywhere my title look like this

 

Screen-Shot-2013-04-18-at-7.22.39-AM.png

 

 

How this code is work, if I need change just the home page title and other pages just do display: none
 
.alpha .entry-title, .alpha .widget-title,
.beta .entry-title, .beta .widget-title,
.default .entry-title, .default .widget-title {
display: none;
}


#8 integritymediacorp

integritymediacorp

    Advanced Member

  • Members
  • 35 posts
  • Country: Country Flag

Posted 18 April 2013 - 02:34 PM   Best Answer

ok I solved by ContentBox, just paste CSS code here and I turned off all title on this page.

 

Thank you!







Also tagged with one or more of these keywords: header, title, style, different