H2 changes in unexpected places

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

H2 changes in unexpected places

mywaytoo
http://welwynhatfield.983918.n3.nabble.com/Users-Promotional-Photos-td2730104.html

I intended to change the H2 header for the heading 'My Chocolate Explosion (Example)'; however other places changed too. And, apart from the '1 comment' as being H2, I am quite happy with the other one...
BUT I would like to have control over them... somehow...
Anne
Reply | Threaded
Open this post in threaded view
|

Re: H2 changhttp://nabble-support.1.n2.nabble.com/template/NamlServlet.jtp?macro=reply&node=6215562es in unexpected places

GregChapman
It's a question of identifying the block the various h2 elements are in and creating a conditional rule that will only apply to the right one. For example:

"Add links and photos for free... it's entirely up to you..." is within:
html > body > div #nabble .nabble macro_classic_blog_post > div .root-text > h2

"1 Comment" is within
html > body > div #nabble .nabble macro_classic_blog_post > div #comment-section > h2 .second-font big-title

and "My Chocolate Explosion (Example)" is within
html > body > div #nabble .nabble macro_classic_blog_post > div #comment-section > div #topic-contents > div #classic-contents > div .classic-row > table .classic-body > tbody > tr > td .classic-message > div .message-text > h2

So to create a rule that only affects the last one, go to CHANGE APPEARANCE and add a rule in the CSS box:

div.message-text h2 {
  color: red;
}
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Nabble default settings for Sub-Headings

mywaytoo
Greg... Thank you for that... a 'tad' over my head really... The coding from View Source gives my webpage coding, so I guess that you looked at unembedded Source Code?

However a few things are quite interesting...

1. Nabble is really very Search Engine Optimisation (SEO)-friendly, but we need to know which sentences to concentrate on... presumably that is what the Adding Sub-Headings Tips helps us with... but does not tell us about Nabble default settings.

2. I think that there is a bug here, in that '1 comment' is not a good SEO term and therefore should not be defined as H2... LOL

3. My 'coding' on the Post has propogated back to the Topic... Oh, I guess that that's the CSS bit... Hmmm

4. Ideally I would like each user who makes a comment to be able to select their own colour for H2...
Anne
Reply | Threaded
Open this post in threaded view
|

Re: Nabble default settings for Sub-Headings

GregChapman
mywaytoo wrote
1. Nabble is really very Search Engine Optimisation (SEO)-friendly, but we need to know which sentences to concentrate on... presumably that is what the Adding Sub-Headings Tips helps us with... but does not tell us about Nabble default settings.
That recent addition was done in response to a user request in the Premium Support Forum, who wanted an easy way to add headings in his blog posts. It was possible before to do it if you switched to HTML format, but that placed a burden on the user of needing to tag ordinary paragraphs as well. The new approach does make it easier to highlight heading that might be important for search engine purposes.

2. I think that there is a bug here, in that '1 comment' is not a good SEO term and therefore should not be defined as H2... LOL
I agree! I don't think that should be tagged as a second level heading. That makes it too important. (It may be desirable for it to appear the same, as an h2 tag but that should be done with the styling of a lesser heading tag.)

3. My 'coding' on the Post has propogated back to the Topic... Oh, I guess that that's the CSS bit... Hmmm
That's right! That's why you need to generate a conditional rule that will only affect an h2 tag when it's contained within a specific block.

4. Ideally I would like each user who makes a comment to be able to select their own colour for H2...
That's not going to be possible with the current system. It would require adding greater complications in the edit screen toolbar and I suspect that most forum owners would not want their users messing with their carefully crafted colour schemes, and adding yet further code to limit the range of colours a user could choose would, I suspect, not be a priority for the majority of forum owners, so I doubt that Nabble would implement that.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Nabble default settings for Sub-Headings

GregChapman
In reply to this post by mywaytoo
Hi Anne,

Forgot to respond to this bit...
mywaytoo wrote
The coding from View Source gives my webpage coding, so I guess that you looked at unembedded Source Code?
That's just a question of using a better browser!  I know how you're committed to IE.

Firefox offers further options. If you right-click anywhere over the forum there is a "This Frame" option on the menu that leads to a sub-menu that allows you access to the source of the forum. (I then also have Firefox's "Web Developer" Add-on installed, which offers as much and more of IE's "Developer Tools".)
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Nabble default settings for Sub-Headings

mywaytoo
I'm not so much committed to IE, just scared stiff that something will go wrong and I won't have a PC at all. You know what you're doing, but I'm still at Geek school...  

Anne
Reply | Threaded
Open this post in threaded view
|

Re: Nabble default settings for Sub-Headings

GregChapman
In reply to this post by GregChapman
GregChapman wrote
mywaytoo wrote
4. Ideally I would like each user who makes a comment to be able to select their own colour for H2...
That's not going to be possible with the current system. It would require adding greater complications in the edit screen toolbar and I suspect that most forum owners would not want their users messing with their carefully crafted colour schemes, and adding yet further code to limit the range of colours a user could choose would, I suspect, not be a priority for the majority of forum owners, so I doubt that Nabble would implement that.
When I wrote that I was thinking of the "Comment" heading which is generated by Nabble's software. However, I should have said that it is quite possible for individuals to add headings within their messages and to assign any colour they like, if they click the "Message is in HTML format" box and add the appropriate code, but that is probably too "techie" an approach for the user you had in mind. As you are aware from your question at:
http://nabble-support.1.n2.nabble.com/How-to-post-image-of-website-page-td6221673.html
you can take posting in HTML to extreme lengths.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Nabble default settings for Sub-Headings

mywaytoo
GregChapman wrote
... it is quite possible for individuals to add headings within their messages and to assign any colour they like, if they click the "Message is in HTML format" box and add the appropriate code...
Greg... I can't imagine that the coding will be that difficult...
Anne
Reply | Threaded
Open this post in threaded view
|

Re: Nabble default settings for Sub-Headings

mywaytoo