Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
ThistleProse

[Solved] ElseIf -- Blank fields to yield a result?

Recommended Posts

Hi!

 

so, I have the PhP in templates doing its thing, but I have a question about if it can do the thing I want it to do lol

 

I have an input box, for custom hex code. However, if NO hex is put in, I would like it to use a default. But I don't know how to make the code work?

 

 
  Basically, I want each of these Fields to be;
  If empty: show [default hex code]
  If filled: use [given code]

 

Is this possible?

 

 
     /*Major Title Headers*/    .ProfileTitle2 {font-family: 'Bilbo Swash Caps', cursive; letter-spacing: 3px; font-size: 55px; color: #{$userfields['fid37']}; text-align: center; background-color:#{$userfields['fid35']}; border-radius: 10px; border: 8px; padding:8px; padding: 10px 50px 0px 0px; text-shadow: 0 -2px 3px #{$userfields['fid33']},0 3px 4px #{$userfields['fid35']};}

 


October-2017.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.