By Ray Seaman on
Using views, I have a block which sits at the "content top" region of my page that I want to act as a headline area. So I need this particular block (NOT all blocks) to output node titles as h1 rather than h2. How do I do this? Thanks!
Comments
=-=
target that specific block with css.
firefox browser and firebug addon will help you inspect the elements and figure out what declarations you need to use in your style.css theme.
The theme developers guide will help as well where it explains block deltas.
for someone on the forums to fix css specific issues , if possible, place a link to your site.
I use firebug and know the
I use firebug and know the css class (h2.title). I need to be able to change the element to h1, thus I think this would have to happen through some tpl.php file. I just need to know which one I need to be editing and what code to insert (if necessary) to change this particular block node's title to h1.
Link is here (should've provided this earlier - apologies):
http://www.marionobserver.com
It's the top block (block 4 I believe) that I want to change the node title to h1.
...
As it seems you want multiple H1 tags... I don't suggest this. A page should never have more than one H1 tag (the title of the page itself). If you have a few extra it may be no issue other than possibly annoying a user who has to use a screen reader... if you have too many though you may be penalized by search engines who see overuse of H1 to be a possible red flag for spam-like behavior.
I have the same issue, only
I have the same issue, only for a page created by panels. I have a H2 I want to change to H4. Studying the CSS to figure out how to do via css as I have already stylized the H2 to what is needed.
The easiest way would be to
The easiest way would be to copy the templates from your block module and modify it to suit your need.
If you are looking at overwriting an specific block you can name your template file as per block theme documentation https://www.drupal.org/node/1089656
Thanks
--
Cheers,
Ash U
http://www.ashish.com.au