Tagged: 

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #289238

    Please can you help me out with the CSS for the contact page on my site so it looks like this http://www.mixd.co.uk/contact/?

    The spacing p, colour and size of icons and fonts.

    Thanks

    • This topic was modified 10 years, 4 months ago by sandboxes.
    #289305

    Hey sandboxes!

    Thank you for using the theme.

    Are you referring to the placeholder inside the input fields? The contact page link is not working or maybe it’s a private page. If you want to replace label with placeholders. Edit framework > php > class-form-generator.php, we’ll try to edit the text function inside avia_form class. Look for this code on line 284:

    $form_el = ' <input name="'.$id.'" class="text_input '.$element_class.'" type="'.$type.'" id="'.$id.'" value="'.$value.'"/>';
    			$label = '<label for="'.$id.'">'.$element['label'].$required.'</label>';
    

    Replace it with:

    $form_el = ' <input placeholder="'.$element['label'].'" name="'.$id.'" class="text_input '.$element_class.'" type="'.$type.'" id="'.$id.'" value="'.$value.'"/>';
    			//$label = '<label for="'.$id.'">'.$element['label'].$required.'</label>';

    We added the place holder attribute inside the input tag then hide the actual label variable. Do the same thing with the textarea function.

    Regards,
    Ismael

    #289964
    This reply has been marked as private.
    #290022

    Hi!

    Thank you for the update.

    I thought you’re using the default contact form. If you want the label inside the text when using the Contact Form 7 plugin, when generating tags or form, enable the “Use this text as placeholder?”. Add the label on the Default value (optional) field.

    Cheers!
    Ismael

    #290025

    Thanks how do I space out the icons?

    #290026

    Hey!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab and adjust as needed

    .avia-icon-list li { margin-bottom: 20px; }

    Regards,
    Yigit

    #290395

    Thank you:) how do I get the text smaller so it fits ine a single line fhe specific icons without changing the I in text size in ither sections!

    #290438

    Hey!

    Please add following code to Quick CSS as well

    #contact h4.iconlist_title {
    font-size: 14px;
    }

    Best regards,
    Yigit

    #344500

    If you want the label inside the text when using the Contact Form 7 plugin, when generating tags or form, enable the “Use this text as placeholder?”. Add the label on the Default value (optional) field.

    I don’t understand where to find this. I am interested in doing this too.

    #345459

    Hey @kbarranco!

    Make sure you are using Contact Form 7, the placeholder option can be found here – http://screencast.com/t/Gest1O1f8guf

    Regards,
    Josue

    #372727

    Regarding to your reply #289305 above.
    How do I implement this at the chiild function.php please?
    Thank you.

    #372748

    Hi!

    Not sure if it is the best way but you could copy all of the contents of the file and paste it into the bottom of your child theme functions.php file and then remove the first line.

    <?php  if (  ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );
    

    Cheers!
    Elliott

    #373105

    No, sorry.
    For this I don’t need the child theme ))
    If you change something at the main theme at some of your next updates, this will not be affected because i have the old file at the Child
    PLease solution

    Regards

    • This reply was modified 9 years, 11 months ago by vadi4ek.
    #373167

    Hey!

    I’m sorry but I don’t understand. If you need to do the customization at #289305 in a child theme then the only way that I know of is to add the class to the child theme functions.php file.

    Best regards,
    Elliott

    #373927

    So. All I have to do is put this code at my child function php?

    $form_el = ' <input placeholder="'.$element['label'].'" name="'.$id.'" class="text_input '.$element_class.'" type="'.$type.'" id="'.$id.'" value="'.$value.'"/>';
    			//$label = '<label for="'.$id.'">'.$element['label'].$required.'</label>';

    I don’t think so.
    Sorry for that.

    #373949

    Hey!

    1. Copy all of the contents of the class-form-generator.php file except the first line.

    <?php  if (  ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );
    

    2. Paste it into your child theme functions.php file.

    3. Do the edit in Ismael’s first post.

    Cheers!
    Elliott

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.