Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #5532

    Hi, you have an awesome theme here…

    How can i delete the “Share, enjoyed this post” thing in all the posts?

    Thanks!!!

    #50728

    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>

    #50729

    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”.

    #50730

    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 :)

    #50731

    It worked, thank u!

    #50732

    Glad that I could help you :)

    #50733

    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.

    #50734

    Hey,

    you can use this to edit your templates so they only display posts from a specific category or only show posts when they’re on the correct page..

    Would you like to remove the commenting on all pages? You can do this through the wordpress settings under Discussion.

    #50735

    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

    #50736

    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).

    #50737

    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?

    #50738

    Yes – a complete syntax reference can be found here: http://codex.wordpress.org/Function_Reference/in_category

    #50739

    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.

    #50740

    Glad that you found a solution :)

    #50741

    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!

    #50742

    Hey Guys,

    Any ideas how to do this (above)?

    Thanks

    rich

    #50743

    Don’t worry, I fixed it myself.

    :O)

    #50744

    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.

    #50745

    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?

    #50746

    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.

Viewing 20 posts - 1 through 20 (of 20 total)

The topic ‘Enjoyed this post?’ is closed to new replies.