Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #17224
    GinaL
    Member

    Hey Sakin,
    I would like to add your default div class=”catchwebtools-social” into the <div class=”site-info”>.. and in additon an indivual link, standing alone. All of those should be inline but separated, icons floating right. trying to use the footer wifget area doesn’t help, cause it is above the site info…
    How can I manage this on the most simple way? I’m not a freak on this stuff.
    Website is in maintainance, so I cant post al link. Using Catch eversest free.
    Thank you in advance. Gina

    #17238
    Sakin
    Keymaster

    @GinaL: This is bit complex. So, I recommend you to hire customizer. I can guide you the process. Fist you need to build child theme and then in child theme you need to call the social icons function and hook it with catcheverest_before_site_info() action hook.

    #17253
    GinaL
    Member

    Thank you, I would be so glad, if you can guide me. I have a child theme and I’ve done some experiments with the footer inside – no chance alone. Would you be so nice and tell me how I can hook the Icons an show them on my favorite position. Thank you so much in advance at greetings from Bavaria.

    #17274
    Sakin
    Keymaster

    @GinaL: So, you are using Catch Web Tools Plugin and Child theme of Catch Everest Free Theme. Then you can add the following code in your child theme functions.php file are as below:

    if ( function_exists( 'catchwebtools_get_social_icons' ) ) :
    	add_action( 'catcheverest_site_generator', 'catcheverest_child_social', 5 );
    endif;
    
    function catcheverest_child_social() {
    	echo catchwebtools_get_social_icons();	
    }
    #17275
    GinaL
    Member

    So I’ve done the call like this
    <div id=”site-generator” class=”container”>
    <?php
    /**
    * catcheverest_before_site_info hook
    */
    do_action( ‘catcheverest_before_site_info’ ); ?>

    <div class=”site-info”>
    <?php if ( function_exists( ‘catchwebtools_social_icons’ ) ) catchwebtools_social_icons(); ?>
    <?php

    Is it the right position? What is the next step?

    #17277
    GinaL
    Member

    argh, sorry did not see your post..
    I need to do this in the function php? I’ve worked with the footer 🙁
    I will change this immediately..

    #17279
    Sakin
    Keymaster

    @GinaL: Yes in your child theme functions.php file

    #17281
    GinaL
    Member

    If done this at the end of the functions php, but it causes:

    Fatal error: Cannot redeclare catcheverest_custom_header_setup() (previously declared in /homepages/6/d457812107/htdocs/wp-content/themes/catch-everest/inc/custom-header.php:39) in /homepages/6/d457812107/htdocs/wp-content/themes/catch-everest/inc/custom-header.php on line 79

    Any idea, wrong place for inserting?

    #17282
    Sakin
    Keymaster

    @GinaL: Look at the code I gave you. I haven’t told you to change anything in custom header. Just build child theme and in your child theme functions.php file you need to add the following code.

    if ( function_exists( 'catchwebtools_get_social_icons' ) ) :
    	add_action( 'catcheverest_site_generator', 'catcheverest_child_social', 5 );
    endif;
    
    function catcheverest_child_social() {
    	echo catchwebtools_get_social_icons();	
    }
    #17283
    GinaL
    Member

    done, sorry it was my fault, I’ve copy the whole php into the child theme’s functions..what a *
    Now I can see the icons left in site info. Would you mind to help me, get them in right floating position.

    #17284
    Sakin
    Keymaster

    @GinaL: You shouldn’t add all codes in you child theme. Child theme is a place where you add the additional codes needed. As child theme automatically take the parent theme codes and no need to add it again.

    You can add the following CSS in your Child Theme style.css

    .catchwebtools-social {
        display: block;
        float: right;
        margin: 0;
    }
    #17285
    GinaL
    Member

    Thank you so much, it works. Now I have to do some experiments, how I can layout my link and the other content of site info in one row. Although..would be obliged you know a simple hint 🙂

    #17322
    Sakin
    Keymaster

    @GinaL: Sorry I cannot get that. Please use Hire a Customizer.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Social icons in site-info’ is closed to new replies.