inherit
174885
0
Oct 13, 2016 12:40:49 GMT -8
goodkel
259
December 2011
goodkel
|
Post by goodkel on Apr 20, 2015 12:24:03 GMT -8
Forum URL: weightlosssurgery.proboards.comThis is the screen shot of the "You are awesome Member" thing that I have. I want it centered. This is the code that was used to place it: ----------------- --Main Header-- ----------------- <script> document.write("<b>You are awesome " + pb_username + ".</b>"); </script> This is the code I was given to center it: "You can use <center> and </center> tags or you can use <div style="text-align: center;"> and </div> to center the text." However, most importantly, there is no such code under my Main or Global headers. I can't find it in order to try centering it. It WAS centered in V4 and was just one of those glitches I meant to get to one day. Now that I am in the process of building a new theme, I want to fix this and include it in my new theme. Thank you for your help! Kelly
|
|
#eb7100
33409
0
1
Apr 14, 2024 15:59:10 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Apr 20, 2015 12:30:22 GMT -8
Hi, goodkel. It looks like you have it in Themes > Layout Templates > Forum Wrapper. You can use template variables in the Layout Templates section, so Javascript isn't even necessary for the particular code you're using. Example: This will output the same thing.
|
|
inherit
174885
0
Oct 13, 2016 12:40:49 GMT -8
goodkel
259
December 2011
goodkel
|
Post by goodkel on Apr 20, 2015 12:36:43 GMT -8
Great! So I delete the old code and use this? Will that center it over the board?
Thanks!
|
|
#eb7100
33409
0
1
Apr 14, 2024 15:59:10 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Apr 20, 2015 13:11:34 GMT -8
If you want it centered you can use this. Much better than center tags.
|
|
inherit
174885
0
Oct 13, 2016 12:40:49 GMT -8
goodkel
259
December 2011
goodkel
|
Post by goodkel on Apr 20, 2015 17:41:53 GMT -8
It worked like a dream!
Thank you, thank you, thank you!
|
|