• Resolved atosz

    (@atosz)


    Dear Andre,

    I am facing a small problem but as i like to keep everything aligned i would like to solve it.

    Please have a look my support ticket for Contact Form 7.

    In meantime i’ve tried other contact form pugins, and i got the same reults regarding the alignment. So i guess it is somehow related to this theme.

    Thank you in advance!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Theme Author Shaped Pixels

    (@shaped-pixels)

    Ah…if you are referring to the “placeholder” text in the fields, I know what is happening…it’s my fault for not adding this, but will need to do this on the next update.

    In the theme’s style.css file around line 1602, look for this and copy it to your child theme’s style.css file:

    input[type="text"],
    input[type="tel"],
    input[type="email"],
    select,
    textarea {
      display: block;
      width: 100%;
      height: 34px;
      padding: 6px 12px;
      font-size: 0.875rem;
      line-height: 1.42857143;
      color: #616161;
      background-color: #ffffff;
      border: 1px solid #d9d9d9;
    }

    Then make it this:

    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    input[type="range"],
    input[type="date"],
    input[type="month"],
    input[type="week"],
    input[type="time"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="color"],
    input[type="hidden"],
    select,
    textarea {
      display: block;
      width: 100%;
      height: 34px;
      padding: 6px 12px;
      font-size: 0.875rem;
      line-height: 1.42857143;
      color: #616161;
      background-color: #ffffff;
      border: 1px solid #d9d9d9;
    }

    Then right after, look for this around line 1615:

    input[type="text"]:focus,
    textarea:focus,
    select:focus {
      border-color: #bfbcbc;
      outline: 0;
      -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(191, 188, 188, 0.6);
      box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(191, 188, 188, 0.6);
    }

    Add this batch to it and right after the input[text] one so that it resembles what we just did above:

    input[type="email"]:focus,
    input[type="url"]:focus,
    input[type="password"]:focus,
    input[type="search"]:focus,
    input[type="number"]:focus,
    input[type="tel"]:focus,
    input[type="range"]:focus,
    input[type="date"]:focus,
    input[type="month"]:focus,
    input[type="week"]:focus,
    input[type="time"]:focus,
    input[type="datetime"]:focus,
    input[type="datetime-local"]:focus,
    input[type="color"]:focus,
    input[type="hidden"]:focus,

    IMPORTANT: Keep the copied and modified CSS code in it’s own area in your child theme’s style.css so that if anything goes wrong, you can go back in and either delete it or check for any mistakes.

    NOTE: I will be adding the modifications to the next theme update.

    Thread Starter atosz

    (@atosz)

    Thank you!

    That was not 100% clear for me, finally all codes have been copied into my CSS sheet (by SiteOrigin CSS). Now aligning looks good, 2nd and 3rd row (email and tel) are still look “stronger”.

    Other thing what i would like to reach is to show the Facebook “f” sign at the bottom/middle of the sidebar.
    -> i went to menu
    -> i created a “social” menu
    -> added an own reference with Facebook link
    -> thick the “showing at social menu”
    and tadam… it shows, it is perfect and easy, although i would like to see the “f” somewhere middle in the left sidebar but definitely under the main menu.

    Could you help in it? Thanks for your great support again!
    (maybe i should put this request into a new topic….)

    Theme Author Shaped Pixels

    (@shaped-pixels)

    I just looked at your form…looks good and consistent actually on my end.

    Regarding the position of the social icon, you could move it, but this would then require you to use a child theme (which you are using).

    Copy the header.php file from the parent theme and paste into your child theme (same location that the parent them has it).

    Open the file up and look for this:

                      // Social links
                      if ( has_nav_menu( 'social' ) ) :
                            echo '<nav class="social-menu" role="navigation">';
                                
                            wp_nav_menu( array(
                                'theme_location' => 'social',
                                'depth'          => 1,
                                'container' => false,
                                'menu_class'         => 'social',
                                'link_before'    => '<span class="screen-reader-text">',
                                'link_after'     => '</span>',
                            ) );
                                
                            echo '</nav>';
                        endif;          
                    ?>

    Then move it below this line:

     
    </nav><!-- .site-navigation -->
    

    ….and yes, it should be a new topic, but I already answered it here.

    Theme Author Shaped Pixels

    (@shaped-pixels)

    OOOPS….I need to make a correction to my code above. Do everything above, but…

    before you delete the social links code from where it was before moving it, add this code to replace it:

    ?>

    Then, when you paste/move the Social links menu code to the new spot, at the very top of the code, add this:

    <?php

    …just above this line:

    // Social Links

    Thread Starter atosz

    (@atosz)

    This works. πŸ™‚
    Perfect.

    Last Q regarding this:
    How can i increase the size/hight of the “f” letter? (for eg 2x bigger (200%))

    Thanks!

    Theme Author Shaped Pixels

    (@shaped-pixels)

    The default styling for the social icons is:

    .social a:before {
        content: "\f013";
        font-family: "FontAwesome";
        position: absolute;
        left: 0;
        right: 0;
        font-size: 2rem;
        line-height: 2;
    }

    So you can do this:

    .social a:before {
        font-size: 2rem;
    }

    You can use rem, px, or % for font sizes of your preference.

    • This reply was modified 9 years, 7 months ago by Shaped Pixels.
    Thread Starter atosz

    (@atosz)

    That was the first what i tried (the default value is 1.5, i set it for 2, but nothing changed), Now the actual value is 4 and it has the same size.

    Other request what i forgot… I would be happy if the link opens the new page and not just redirects the page.

    Thanks again.

    Theme Author Shaped Pixels

    (@shaped-pixels)

    Works on my end…the facebook icon is much larger. So if it’s still smaller for you, then it’s more likely a browser cache, site cache, or some other kind of cache that is holding a temporary version of the previous setting. Clear your browser cache and see what happens.

    Thread Starter atosz

    (@atosz)

    Sorry about this, this is already the second time… Now i’ve learnt it… refresh somehow as if i think it should be change anything!

    Now, i see you use the awesome font for logos, and checked their well documented webpage, i will try somehow to change the logo to FB SQUARE.
    <i class="fa fa-facebook-square" aria-hidden="true"></i>

    My first attend was not really successfuly πŸ™‚

    I know that is more than a standard support means, anyhow if you have solution for set the link to opening in a new page and get “f” tighter or other icon, that would be very welcome. πŸ™‚

    Thanks!

    Thread Starter atosz

    (@atosz)

    I solved it, i could change from this:

    .social a[href*="facebook.com"]:before {
    	content: "\f013";
    }

    to this:

    .social a[href*="facebook.com"]:before {
    	content: "\f082";
    }

    And also changed the mail icon. Cool.

    Theme Author Shaped Pixels

    (@shaped-pixels)

    Good to hear πŸ™‚

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Placeholder font style (andvalidation error border / input fields transparency))’ is closed to new replies.