- This topic has 12 replies, 2 voices, and was last updated 11 years, 11 months ago by
Sakin.
-
AuthorPosts
-
November 14, 2013 at 5:43 pm #17224
GinaL
MemberHey 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. GinaNovember 15, 2013 at 12:21 am #17238Sakin
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.
November 15, 2013 at 2:57 am #17253GinaL
MemberThank 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.
November 15, 2013 at 4:30 pm #17274Sakin
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.phpfile 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(); }November 15, 2013 at 5:07 pm #17275GinaL
MemberSo 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(); ?>
<?phpIs it the right position? What is the next step?
November 15, 2013 at 5:11 pm #17277GinaL
Memberargh, 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..November 15, 2013 at 5:14 pm #17279November 15, 2013 at 5:25 pm #17281GinaL
MemberIf 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?
November 15, 2013 at 5:36 pm #17282Sakin
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(); }November 15, 2013 at 6:24 pm #17283GinaL
Memberdone, 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.November 15, 2013 at 6:50 pm #17284Sakin
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; }November 15, 2013 at 7:37 pm #17285GinaL
MemberThank 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 🙂
November 16, 2013 at 8:46 pm #17322 -
AuthorPosts
- The topic ‘Social icons in site-info’ is closed to new replies.
