moving social icons on article view
March 2014 WordPress Theme
- GK User
- Tue Aug 05, 2014 3:31 pm
Hi,
How do I move the social icons from the left side on article view to underneath the date and author info?
Thanks in advance
How do I move the social icons from the left side on article view to underneath the date and author info?
Thanks in advance
-
- Senior Boarder
- GK User
- Tue Aug 05, 2014 9:56 pm
Hi,
It requires some CSS modifications, add this code into css/override.css file (first enable this override option from template options -> Advanced tab):
It requires some CSS modifications, add this code into css/override.css file (first enable this override option from template options -> Advanced tab):
- Code: Select all
article.gk-has-aside .gk-article-body {
padding-left: 0;
}
#gk-social-aside {
position: relative;
width: auto;
}
#gk-social-api > * {
display: inline-block;
min-height: 50px;
margin: 0 30px;
}
-
- Moderator
- GK User
- Wed Aug 06, 2014 8:28 am
Hi,
this doesn't seem to work, just moves them above the image but still in a vertical row. Perhaps I need to edit in the article layout css?
this doesn't seem to work, just moves them above the image but still in a vertical row. Perhaps I need to edit in the article layout css?
-
- Senior Boarder
- GK User
- Wed Aug 06, 2014 3:44 pm
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
-
- Moderator
- GK User
- Wed Aug 06, 2014 8:45 pm
Add also this code into override.css file:
use your own value and you'll have to porbably adjust margin/padding between social icons and the post content.
- Code: Select all
#gk-social-api > div {
width: 50px!important;
}
use your own value and you'll have to porbably adjust margin/padding between social icons and the post content.
-
- Moderator
- GK User
- Mon Aug 18, 2014 11:55 am
-
- Moderator
- GK User
- Mon Apr 13, 2015 5:31 pm
Hello,
and I am interested in these changes.
I edited file override.css as described, but the icons are still arranged in a column.
I would like all icons are at the bottom of the page after the last paragraph and be in a horizontal position.
please help
and I am interested in these changes.
I edited file override.css as described, but the icons are still arranged in a column.
I would like all icons are at the bottom of the page after the last paragraph and be in a horizontal position.
please help
-
- Fresh Boarder
- GK User
- Mon Apr 13, 2015 9:55 pm
Hi @Momcharov,
Could you provide your website URL? (here or via private message).
Could you provide your website URL? (here or via private message).
-
- Moderator
- GK User
- Tue Apr 14, 2015 11:09 am
Try to replace all content from override.css file with the following:
- Code: Select all
/**
*
* -------------------------------------------
* Override
* -------------------------------------------
*
**/
/*
*
* 16. Override
*
*
------------------------------------ */
/* 16.1. Overrided elements
==================================== */
article.gk-has-aside .gk-article-body {
padding-left: 0;
}
#gk-social-aside {
position: relative;
width: 100%;
}
#gk-social-api > * {
display: inline-block;
min-height: 50px;
margin: 0 20px;
}
article.gk-has-aside .gk-article-body {
padding-left: 0;
}
#gk-social-api > div {
width: auto!important;
}
#gk-social-api {
width: 100%;
}
-
- Moderator
- GK User
- Tue Apr 14, 2015 1:12 pm
The position of the buttons may be below content and aligned left or right?
Currently buttons are over the content and In the center.
Currently buttons are over the content and In the center.
-
- Fresh Boarder
- GK User
- Wed Apr 15, 2015 7:23 am
If you want to move it under the content, please remove this fragment from News2/layouts/content.post.featured.php file:
and paste it into News2/layouts/content.post.footer.php file after or before this line:
You can also use this code to align left/right the social icons:
- Code: Select all
<?php if(is_singular()) : ?>
<?php if($social_api_output != '' ): ?>
<aside id="gk-social-aside">
<?php echo $social_api_output; ?>
</aside>
<?php endif; ?>
<?php endif; ?>
and paste it into News2/layouts/content.post.footer.php file after or before this line:
- Code: Select all
<?php gk_post_fields(); ?>
You can also use this code to align left/right the social icons:
- Code: Select all
#gk-social-aside {
text-align: left;
}
-
- Moderator
11 posts
• Page 1 of 1