Cant move facebook plugin with changing margin numbers using CSS?

  • Anonymous

    #38215

    This is my current theme functions in my child theme:

    <?php
    /**
    * Modify the footer copyright text
    */
    function at_register_sidebars() {

    $max_columns = 3; // change to number of columns you want to add to your footer
    $text_domain = 'appthemes'; // the text domain to use for translating the strings

    foreach ( range(1, $max_columns) as $number ) {
    $sidebar_name = sprintf(__('Footer Column %d', $text_domain), $number );
    register_sidebar( array(
    'name' => $sidebar_name,
    'description' => '',
    'before_widget' => '<li id="%1$s" class="widget %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>',
    ) );
    }
    }
    add_action( 'wp_loaded', 'at_register_sidebars' );

    Forgive me for being new to this but I don’t see a body element which to me would be a <body> CODE </body> ?

    Admin

    Syahir Hakim

    #38216

    Add this code to your child theme’s functions.php file:

    /**
    * Add custom classes for easier styling
    */
    function my_body_class( $classes ) {
    if ( is_singular() && ! have_comments() ) $classes[] = 'nocomment';

    return $classes;
    }
    add_filter( 'body_class', 'my_body_class' );

    Anonymous

    #38217

    ok I added that to my functions php.

    Would I still keep this code that makes the comment form look fine when no comments are present but makes it look to far down when comments are present:

    /* moves comment form below face book comment plugin*/
    #commentform {
    margin-top: 150px;
    }

    Would I keep that code, and just add something to connect it to my “custom class”

    and if yes what would I add to the code to make it connect to my “custom class”?

    Thank you sooooo much

    Anonymous

    #38218

    and also do you think I should keep both comment options or just choose one , what’s your opinion ?

    Mod

    Kenneth John Odle

    #38219

    Choose one or the other, or else it gets too cluttered and confusing.

    Anonymous

    #38220

    What would you pick ?

    The pros of

    Facebook comment plugin is that its faster then someone haveing to type there email to leave a comment

    And they can share it instantly via facebook

    The cons

    Its a plugin and sometimes doesn’t work for example when its viewed through my phone iv noticed its just a long white block

    The comment form pro

    It always works

    The con

    You have to type your email eachtime and can’t share it via a socaial network immediatly

    Anonymous

    #38221

    I have three questions:

    I actually would prefer to have both the comment form and face book comment plugin on my website. I just don’t understand how to get it right.

    For example, on this page: Comments look normal on the bottom , The comments and the plugin look fine. But on this page: Comments come out messy , The comments come out really messy, because the facebook comments fall behind the graphene comment form comments.

    1.) How can I hide the facebook comments from showing at all?, because either way they automatically duplicate in the comment form as you can see in the second link.

    2.) I added that to my functions php.

    Would I still keep this code that makes the comment form look fine when no comments are present but makes it look to far down when comments are present:

    /* moves comment form below face book comment plugin*/
    #commentform {
    margin-top: 150px;
    }

    Would I keep that code, and just add something to connect it to my “custom class”

    and if yes what would I add to the code to make it connect to my “custom class”?

    3. in this link Comments come out messy The comment picture that I added as a header gets pulled down behind the facebook comment while in the first link its fine, so it has to do with when someone adds a comment the image gets pulled further down, anyway to make it static?

Viewing 7 posts - 11 through 17 (of 17 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.