Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Is it possible to do a span?
Avatar
Bill Murray
Member
Free Members
sp_UserOfflineSmall Offline
Dec 30, 2011 - 9:21 am

Ok, I have hit a small stumbling block and would appreciate some advice/direction ...

It appears that #spMainContainer .spHeaderName inherits its font from the theme's body style.  I was thinking that (conceptually) this should be from one of the heading styles, H1-H6.  So, I added <h1> tags as:

echo '<h1>';

sp_GroupHeaderName('tagClass=spHeaderName');

echo '</problem-with-post-edit-button1>';

That works. But this does not:

echo '<h1>' . sp_GroupHeaderName('tagClass=spHeaderName') . echo '</problem-with-post-edit-button1>';

Is there a reason why the 2nd does not work?

If I understand your CSS flow, first you reset everything with reset.css, then you customize it.  On line 14 of reset.css, the font-family is set to inherit.  With that setting, my <h1> inherits my body font.  Taking that out, it inherits my theme's <h1> font, which I want. 

I want to avoid hard-coding a font in the theme's style sheet for that ID.  Should I just edit reset.css and remove inherit?  Or edit reset.css and remove the ID from the big list of those covered by line 14?  Or is there a better way to get the theme's <h1> to pass down?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 30, 2011 - 10:41 am

second would be:

echo '<h1>' . sp_GroupHeaderName('tagClass=spHeaderName') . '</problem-with-post-edit-button1>';

dont 'echo' twice...

h1 inherited the body font?  would have to think about how thats happening...  would have thought it would inherit the h1...

I have been thinking about just removing the font-family from the reset... 

Avatar
Bill Murray
Member
Free Members
sp_UserOfflineSmall Offline
Dec 30, 2011 - 11:46 am

Thanks.  Stupid me on the echo.  However, with your correction, it outputs the header name, then outputs empty <h1> tags after that.  I can't see how that could be happening.

You can see it on my forum page.  I'll leave it there for a little bit.  Then I might just comment out the font-family in the reset on the line I referenced, and see how it does.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 30, 2011 - 11:59 am

sorry, wasnt rally paying attention to 'what' you were doing...

echo '<h1>' . sp_GroupHeaderName('tagClass=spHeaderName&echo=0') . '</problem-with-post-edit-button1>';

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 30, 2011 - 12:00 pm

or

echo '<h1>' . sp_GroupHeaderName('tagClass=spHeaderName&get=1') . '</problem-with-post-edit-button1>';

if you dont want the div tags too...

Avatar
Bill Murray
Member
Free Members
sp_UserOfflineSmall Offline
Dec 30, 2011 - 1:56 pm

Ok, I have finished a rather crash course in styling the forum at wpPERFORM.com.  It's pretty much done, except for fixing things I hear via feedback or things that are broken/overlooked.  I tried to hit most areas, even the editor stuff.  One criticism I have heard is that the link font (the blue...a Google font) looks too bright/blurry in Chrome, but I've tested it in Chrome and don't see that issue.  After it gets some live testing, I'm happy to contribute it as a theme if you think others will benefit.  You might be in awe at just how big the anti-border crowd is.

By the way, what do you think of the concept - performance-oriented, manged/supported WP with premium Genesis themes and plugins @ $20/month?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 30, 2011 - 2:02 pm

of course, we would like to add it to the stable...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626