vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Replace Logo Image With Text (https://vborg.vbsupport.ru/showthread.php?t=286656)

Craigr 08-15-2012 08:46 AM

Replace Logo Image With Text
 
I have replaced the logo image with text. This is the code i used in my header template:

Code:

<vb:if condition="$stylevar['titleimage']">
<div>
<a name="top"></a>
<h1>Special Forces</h1>
<h2>Roll Of Honour</h2>
</div>
</vb:if>

The text shows up okay, but it is very small. How do i edit it so it is bigger. I want the h1 to be black text and h2 to be white text.

Thanks. :up:

josh_krz 08-26-2012 11:27 AM

Here you go, you can add CSS directly to tags. Change as you need.
Code:

<vb:if condition="$stylevar['titleimage']">
<div>
<a name="top"></a>
<h1 style="font-size:18px;color:#000000;">Special Forces</h1>
<h2 style="font-size:16px;color:#FFFFFF;">Roll Of Honour</h2>
</div>
</vb:if>


Craigr 08-26-2012 11:40 AM

Quote:

Originally Posted by josh_krz (Post 2360133)
Here you go, you can add CSS directly to tags. Change as you need.
Code:

<vb:if condition="$stylevar['titleimage']">
<div>
<a name="top"></a>
<h1 style="font-size:18px;color:#000000;">Special Forces</h1>
<h2 style="font-size:16px;color:#FFFFFF;">Roll Of Honour</h2>
</div>
</vb:if>


Thanks for your help.

I have an adsense advert that appears to the right if i have an image. When i add the above text it then appears below. Any idea how to fix that?

josh_krz 08-26-2012 11:56 AM

Perhaps this will help:

Code:

<vb:if condition="$stylevar['titleimage']">
<div style="float:left;margin-left:10px;">
<a name="top"></a>
<h1 style="font-size:18px;color:#000000;">Special Forces</h1>
<h2 style="font-size:16px;color:#FFFFFF;">Roll Of Honour</h2>
</div>
</vb:if>


Craigr 08-26-2012 06:20 PM

Quote:

Originally Posted by josh_krz (Post 2360138)
Perhaps this will help:

Code:

<vb:if condition="$stylevar['titleimage']">
<div style="float:left;margin-left:10px;">
<a name="top"></a>
<h1 style="font-size:18px;color:#000000;">Special Forces</h1>
<h2 style="font-size:16px;color:#FFFFFF;">Roll Of Honour</h2>
</div>
</vb:if>


Excellent, works great. :)


All times are GMT. The time now is 03:33 AM.

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.00984 seconds
  • Memory Usage 1,724KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_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