vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Additional CSS for H2, H3 tags has no effect (https://vborg.vbsupport.ru/showthread.php?t=178659)

gaiusrufus 05-09-2008 03:07 PM

Additional CSS for H2, H3 tags has no effect
 
hi all!

i added an additional css for H2 and H3 tags

but the font size on pages is very large, regardless of the size specified in the css

even if i delete the css, the font size does not change
so the additional css seems to have no effekt.

any suggestions?

thank you!
gr

Lynne 05-09-2008 03:29 PM

How about a link to the site/page where this is happening so we can check it out?

gaiusrufus 05-11-2008 02:35 PM

i removed it, but i wanted to integrate this:

Style Manager -> Style and Templates -> {Your Theme Name} -> Main CSS -> Additional CSS (at the very bottom of the page) and enter:
h2.seovb2 {font-family: Arial; font-size: 20px; color: #000000; font-weight: bold;}
h3.seovb3 {font-family: Arial; font-size: 16px; color: #000000; font-weight: bold;}
Hit Save, and then from the drop down in the top left corner, select Edit Templates
Open forumdisplay templates ->FORUMDISPLAY and after $navbar add the following:
<div style=?text-align:center;?>
<h2 class=?seovb2″>$foruminfo[title_clean]</h2>
<h3 class=?seovb3″>$foruminfo[description]</h3>
</div>
Hit save and then open the SHOWTHREAD template and perform a similar edit using the following:
<div style=?text-align:center?>
<h2 class=?seovb2″>$thread[title]</h2>
<h3 class=?seovb3″>$foruminfo[title_clean]</h3>
</div>

the text displays, but i can not influence its font/size, so the css doenst work..
:cool:

Lynne 05-11-2008 03:27 PM

I copied exactly what you did and it didn't work. It's because you didn't use standard quote marks in your html and so it converted it.

Use " not ”
So:
HTML Code:

<div style="text-align:center;">
<h2 class="seovb2">$foruminfo[title_clean]</h2>
<h3 class="seovb3">$foruminfo[description]</h3>
</div>

Not:
HTML Code:

<div style=”text-align:center;”>
<h2 class=”seovb2″>$foruminfo[title_clean]</h2>
<h3 class=”seovb3″>$foruminfo[description]</h3>
</div>


gaiusrufus 05-12-2008 06:09 AM

Thank you Lynne!

I did not even know, there is a difference .....

you are right:
with ' it works,
with " it doesn't work

Thank you! :)


All times are GMT. The time now is 11:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01406 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete