Hi, you have an awesome theme here...
How can i delete the "Share, enjoyed this post" thing in all the posts?
Thanks!!!
Hi, you have an awesome theme here...
How can i delete the "Share, enjoyed this post" thing in all the posts?
Thanks!!!
Hey,
open up shoutbox/includes/author-social-box.php and delete following code:
<div class='social-box'>
<?php
echo "<h3 class='miniheading'>";
_e('Enjoyed this Post?','avia_framework');
echo "</h3>";
echo "<div class='minitext'>";
_e('Subscribe to our','avia_framework');
echo " <a href='";
echo avia_option('feedburner',get_bloginfo('rss2_url'));
echo "'>RSS Feed</a>, ";
if($twitter = avia_get_option('twitter'))
{
_e('Follow us on ');
echo "<a title ='' href='http://twitter.com/".$twitter."'>Twitter</a> ";
}
_e('or simply recommend us to friends and colleagues!','avia_framework');
echo "</div>";
?>
<div class='share_stuff'>
<!-- AddToAny BEGIN -->
<a class="a2a_dd" href="http://www.addtoany.com/share_save"><?php _e('Share this post','avia_framework'); ?></a>
<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
<!-- AddToAny END -->
<!-- Facebook add BEGIN -->
<a class="fb_share" type="box_count" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>"><?php _e('Share on facebook','avia_framework'); ?></a>
<!-- Facebook add END -->
</div>
</div>Thanks for the fast reply, but didnt work´very good...
Deleting that code deleted the "Enjoyed this post?" thing, but now the sidebar is under the "leave a reply box".
Sorry - my previous code also removed the wrapper div. I corrected the instructions abvove. Basically this code line:
<div class='post-entry' id="post-meta-box">
is required and I told you to remove it :)
It worked, thank u!
Glad that I could help you :)
Is it possible to do this for only one specific category of post?
I'd like to remove the commenting option too, so that the only thing displayed is the post, nothing else below it.
Hey Chris,
I don't need to filter the posts (I can already display the ones I want using the categories), I need to strip out all the social boxes, author info, related posts and commenting on ONE specific post category, so it looks more like a page.
I was trying to add some code to the single post.php file just before it calls in all the template parts (where it says: "/* Run the loop to output posts... get_template_part('xxx')...") but I don't know how to write the code. Basically it needs to say "If the category of the post to be displayed is X then don't put any of the social boxes, author info, related posts, or commenting boxes afterwards". But in php language!
Hope you understand!
Thanks
You can use conditional statements like:
<?php if(in_category(16)){ ?>
your code like social boxes, author info, related posts, etc...
<?php } ?>
I.e. this sample will show social boxes, author info, etc. for posts which are assigned to category 16 (id of category) only.
<?php if(!in_category(16)){ ?>
your code like social boxes, author info, related posts, etc...
<?php } ?>
This sample code will show social boxes, author info, etc. for all posts which are NOT assigned to category 16 (id of category).
Thats cool! Thanks guys.
If the category name is a string eg "dogs", how do I write that instead of the 16? Like this: 'dogs' or do I have to find the id for the category? How do I do that?
Yes - a complete syntax reference can be found here: http://codex.wordpress.org/Function_Reference/in_category
Thanks Dude! It seems to work ok. I used the if/not version:
<?php if(!in_category(16)){
your code like social boxes, author info, related posts, etc...
} ?>
and I had to remove some of the php tags, as above, or else it prints everything that is written after the first condition.
Glad that you found a solution :)
Hey Dude,
Having got this working, how can I also remove the remaining blog-meta info (date, author, category, comments) for one specific category of post?
Thanks!
Hey Guys,
Any ideas how to do this (above)?
Thanks
rich
Don't worry, I fixed it myself.
:O)
Glad that you found a solution. Sorry that we didn't help you but it's a bit chaotic at the moment because of the amount of requests, etc.
No problem. I think you should tell Kriesi to stop writing so many themes haha
:O)
Actually that reminds me...
Is the woocommerce plugin easy to use? Could I use it to make a shop inside a Shoutbox theme for example?
Basically yes (I love the plugin - it's very easy to use and with some extentions it's a blast...however the free version is great too). I haven't tested it with Shoutbox yet but it should work because afaik it doesn't require "special" theme files. On the other hand shop plugins are very complex and some php/css coding may be required to integrate it properly. Abundance contains custom code to integrate woocommerce nicely - I'm not sure which code is necessary and which is "extra stuff" though.
You must log in to post.