Viewing 20 posts - 1 through 20 (of 21 total)
  • Author
    Posts
  • #50768
    Eduardo
    Participant

    Hello,
    I am Eduardo from Spain.
    I want to know if is possible to have social icons in menu line.
    Thank you in advance.

    #50769
    Eduardo
    Participant

    So sorry,
    I forgot to write that I have Catch box pro theme.
    Thank you.

    #50775
    Sakin
    Keymaster

    @Eduardo: Sorry there is not option to add Social Icon inline with Menu. You can add social icon only in Widget Area (Sidebar). That you can manage from “Appearance => Widgets”.

    #50783
    Eduardo
    Participant

    Ok. Thank you Sakin
    But, Can I increase padding between social icons (header sidebar right) and header?
    Nowadays social icons is touching the header image.

    #50786
    Sakin
    Keymaster

    @Eduardo: Yes you can. Post in your site URL so that I can check in.

    #50829
    Eduardo
    Participant

    Sakin, I still have the blog in a private space (something like “test”). So If you want to watch it, I am able to send you an e-mail, or private post with login and password.
    Thank you.

    Nevertheless, you can watch the problem with social icons in this link:
    https://drive.google.com/file/d/0BzK84rT02Y4_VGV3UEN6aW91ZnM/view?usp=sharing

    #50871
    Sakin
    Keymaster

    @Eduardo: You can add the following css in “Appearance => Theme Options => Custom CSS” box. If you further want more space then you can increase margin-top from 10px to more that you want.
    .sidebar-top .widget_catchbox_social_widget { margin-top: 10px; }

    #50878
    Eduardo
    Participant

    Perfect! Thank you!

    #51226
    Eduardo
    Participant

    Hello Sakin,

    I have a few questions.

    1. Now, I put the social media widget on the primary sidebar (I just have the post column on the left and sidebar column on the right), I put the icons in the center, but I would like to put the title of these icons also to the center.

    2. I would like to narrow the frame on the left of post column, and on the right of sidebar column.

    Thank you!

    #51230
    Eduardo
    Participant

    One more:

    3. Post a comment window, I just want to see: Name and comment, because I do not want the people have to register for post a comment.

    Thank you again!

    #51231
    Sakin
    Keymaster

    @Eduardo: Sorry I need your site URL for support.

    #51367
    Eduardo
    Participant
    #51397
    Sakin
    Keymaster

    1. If you want to center all widget ticket to be align centered then you need to add the following css in “Appearance => Theme Options => Custom CSS” box:
    .widget-title { text-align: center; }

    But if you just want to center the social icon title then add the following instead:
    .widget_catchbox_social_widget .widget-title { text-align: center; }

    2. You can change the percentage in the following css and then add it in “Appearance => Theme Options => Custom CSS” box:

    @media screen and (min-width: 961px) {
    #primary { width: 64%; }
    #secondary { width: 34%; }
    }

    3. People don’t have to be register to post a comment. I can post comment in your site that’s not a problem. To remove this it require high level of customize, so you might need to hire customiser for that. First you need to build child theme, copy function catchbox_comment_form_fields() from catchbox-functions.php file, then paste that in your child theme fucntions.php file and edit it there as per your need.

    #51447
    Eduardo
    Participant

    Oh oh,
    I did something wrong:
    PHP Parse error: syntax error, unexpected ‘}’ in /usr/home/mayorderin.com/web/wp-content/themes/catch-box-pro-child/functions.php on line 27

    My web does not work.
    Please help me!
    Thank you

    #51449
    Sakin
    Keymaster

    @Eduardo: Please check your child theme functions.php file. If there is any php error then yes your site will be blank. Then you need to edit that file and fix that php error or delete that child theme. Be careful with the codes. You can use FTP or cPanel to access that file and make changes.

    #51501
    Eduardo
    Participant

    Hello Sakin,

    finally I restarted my blog, but I still want to change the comment form fields. I pasted that in functions.php in the child theme (you can see below).
    But now, first I want to put close to the email field, the following text: “This field is optional”, in spanish “Este campo es opcional”.

    Second, I would like to remove “the web field”.

    Third, I need to make narrow the both margins (on the right and left).

    Thank you!

    <?php
    /**
    * Catch Box Pro Child Theme functions and definitions
    *
    */
    if ( ! function_exists( ‘catchbox_comment_form_fields’ ) ) :
    /**
    * Altering Comment Form Fields
    * @uses comment_form_default_fields filter
    */
    function catchbox_comment_form_fields( $fields ) {
    // get data value from theme options
    $options = get_option( ‘catchbox_options’ );
    $disableurl = $options[ ‘commenting_disable_url’ ];

    $req = get_option( ‘require_name_email’ );
    $aria_req = ( $req ? ” aria-required=’true'” : ” );
    $commenter = wp_get_current_commenter();

    $fields[‘author’] = ‘<p class=”comment-form-author”><label for=”author”>’ . esc_attr__( ‘Name’, ‘catchbox’ ) . ‘</label> ‘ . ( $req ? ‘<span class=”required”>*</span>’ : ” ) . ‘<input id=”author” name=”author” type=”text” value=”‘ . sprintf( esc_attr__( ‘%s’, ‘catchbox’ ), $commenter[‘comment_author’] ) . ‘” size=”30″‘ . $aria_req . ‘ /></p>’;
    $fields[’email’] = ‘<p class=”comment-form-email”><label for=”email”>’ . esc_attr__( ‘Email’, ‘catchbox’ ) . ‘</label> ‘ . ( $req ? ‘<span class=”required”>*</span>’ : ” ) . ‘<input id=”email” name=”email” type=”text” value=”‘ . sprintf( esc_attr__( ‘%s’, ‘catchbox’ ), $commenter[‘comment_author_email’] ) . ‘” size=”30″‘ . $aria_req . ‘ /></p>’;

    if ( isset( $fields[‘url’] ) && $disableurl == ‘1’ ) {
    unset( $fields[‘url’] );
    }

    return $fields;
    }
    endif; //catchbox_comment_form_fields

    add_filter( ‘comment_form_default_fields’, ‘catchbox_comment_form_fields’ );

    #51575
    Eduardo
    Participant

    Hello Sakin,
    How is everything going? Is possible to do those changes?
    Thank you

    #51649
    Sakin
    Keymaster

    @Eduardo:
    1. To disable the website field, you don’t need to change anything. Just go to “Appearance => Theme Options => Comments Options”, check in “Disable Website Field” and save it.

    2. Then your child theme functions.php file should be like below to add the text Este campo es opcional:

    <?php
    /**
     * Catch Box Pro Child Theme functions and definitions
     *
     */
    
    /**
     * Altering Comment Form Fields
     * @uses comment_form_default_fields filter
     */
    function catchbox_child_comment_form_fields( $fields ) {	
    	$req = get_option( 'require_name_email' );
    	$aria_req = ( $req ? " aria-required='true'" : '' );
    	$commenter = wp_get_current_commenter();
    	
        $fields['email'] = '<p class="comment-form-email"><label for="email">' . esc_attr__( 'Email', 'catchbox' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="email" name="email" type="text" value="' . sprintf( esc_attr__( '%s', 'catchbox' ), $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /><span class="email-optional">Este campo es opcional</span></p>'; 
       
       
       return $fields;
    }
    
    add_filter( 'comment_form_default_fields', 'catchbox_child_comment_form_fields', 30 );
    #51703
    Eduardo
    Participant

    Thank you for “website Field” I did not able to watch it
    About email field, it does not work, any idea?

    #51874
    Eduardo
    Participant

    Hello Sakin,
    How is everything going?
    I am waiting for an answer about removing e-mail field or introducing the text “este campo es opcional”. Codes in functions.php does not work.

    And, what about to make narrow the both margins (on the right and left)?
    Thank you.

Viewing 20 posts - 1 through 20 (of 21 total)
  • The topic ‘Social Icons in line with menu’ is closed to new replies.