Need some help with these php lines!

4 replies
Greetings Warriors,

How can I make the string texts to be bold in these php lines:

define('Motto', true);// make true to activate the motto text
define('Motto_TEXT_LINE1', 'How To Save Big Bucks On Your Auto Insurance');
define('Motto_TEXT_LINE2', 'Just Take A Few Simple Steps To Put Insurance Premium Money Back In Your Pocket!');

Is there a way as well to improve the font size of the string texts?

Thanks,
G.B
#lines #php
  • Profile picture of the author KirkMcD
    You need to edit where they get displayed, not where they are defined.
    {{ DiscussionBoard.errors[6312572].message }}
  • Profile picture of the author SteveSRS
    As KirkMcD said

    <?php
    define('Motto_TEXT_LINE1', 'How To Save Big Bucks On Your Auto Insurance');

    //where you gonna use them
    echo "<strong>".Motto_TEXT_LINE1."</strong>";

    ?>

    However actually you should do all make-up of a website in the CSS not in the HTML itself. Same thing goes for font properties (all size, type etc etc is defined in your CSS)

    Also common practice states all defined vars like you use them are in UPPERCASE letters.
    {{ DiscussionBoard.errors[6313186].message }}
  • Profile picture of the author porcupine73
    Also, define can be used in that way, but it's more normally used for constants where the value should not be changed once it is set, like
    define('HOURSINDAY',24);

    Yours might look better like
    $mottoline1 = 'How To Save Big Bucks On Your Auto Insurance';

    Then when you echo it you can use a parsed string like
    echo "<span class=\"line1\">$mottoline1</span>\n";

    Then in your css you can have something like
    .class {
    font-size: 300%;
    }
    {{ DiscussionBoard.errors[6314068].message }}
  • Profile picture of the author Go4DBest
    Thanks, I got it now.

    I really appreciate all your replies.

    Let's go for the best!
    Signature
    We setup and design wordpress sites using the Divi theme for roughly 200 USD. Let's talk.
    {{ DiscussionBoard.errors[6319303].message }}

Trending Topics