Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #201690

    Hello, all

    I have just updated to the latest version of Enfold (2.5), and had to make a few tweaks to the includes/loop-index.php file, which is slightly different from what I had before (v 2.2), and also a bit different from the post here in November. I wanted to share in case others need some clarification on how to change the latest file. I am hiding both comments and the author:

    – comment out lines 125-134 to hide comments
    – line 154 added a space after ‘in’ to look like this – (‘in ‘,’avia_framework’)
    – line 156 to hide text separator after categories
    – comment out lines 160-166 to hide author

    Hope that helps! Jodi :)

    #201699

    Hi there, I would like to hide the date and the comments in posts, but have to say I don’t understand how to go about applying what you’ve posted above. Are you able to advice me on how to accomplish this task. Would really appreciate it :-)

    Talk to you soon.

    #201713

    Sure! Go into your includes folder that is located in your Enfold folder (ie, unzipped Enfold.zip, which is inside the main themeforest zip file that you have downloaded). Open loop-index.php with a basic text editor, do a save as something else to be safe (and have a backup that you know works), then copy and paste what I have here:

    Lines 125 – 134 (simply comments out each line) –

                        //if ( get_comments_number() != "0" || comments_open() ){
    
                        //echo "<span class='comment-container minor-meta'>";
                        //comments_popup_link(  "0 ".__('Comments','avia_framework'),
                                             // "1 ".__('Comment' ,'avia_framework'),
                                             // "% ".__('Comments','avia_framework'),'comments-link',
                                             // "".__('Comments Disabled','avia_framework'));
                        //echo "</span>";
                        //echo "<span class='text-sep text-sep-comment'>/</span>";
                       // }
    

    Line 154 (add a space after in) –

    
                            echo '<span class="blog-categories minor-meta">'.__('in ','avia_framework')." ";
    

    Line 156 (comment out the last text separator) –

    
                           // echo '</span><span class="text-sep text-sep-cat">/</span>';
    

    Then save the file and FTP into the same folder, includes, on your server. If you do not know how or have FTP access then you can edit the loop-index.php file right in WP admin, but I prefer to have local back ups. Hope that helps you, DLuckyBreak! Jodi

    #201769

    Hey!


    @webWahine
    : That is really helpful. You can also add this on your Quick CSS:

    .text-sep.text-sep-cat, .blog-author.minor-meta, .comment-container.minor-meta, .text-sep.text-sep-comment {
    display: none;
    }

    Cheers!
    Ismael

    #201771

    Well, that is a whole lot easier! Thanks – I may just revert back to the original loop-index.php file and pop this in the custom.css – much easier for updates! :)

    #201828

    Hey Jodi, thanks very much for your reply with instructions. I was about to challenge myself and follow your very detailed instructions, until I saw the easier option by Ismael – which I have opted for at this moment.

    I just want to thank you both for you response. However there is just one problem and that is I only wish to hide the date and comments lines, not the authors name. As I am the author.

    Please advice.

    Much appreciated.

    #201829

    Ah, well, since it would be much easier for Ismael to give you the css I’ll defer. With that said, best of luck with your project!

    #201851

    I sure hope I didn’t offend you?
    I’ve been working on this site for a while now and just need to get it published. So looking for the quickest ways to do so.

    Any, thanks again for your prompt reply, and please accept my best wishes and Happy Holidays to You and Yours. Blessings :-)

    #201855

    Hey Jodi, please accept my apologies. Wow…I just realised how much may have messed up by not taking your advice, or should I say going the easier way. I just had a look at you website and your portfolio. That is some impressive stuff….wow!

    What would you charge me to get my enfold theme customised? This could be DLuckyBreak I’ve been waiting for.
    Please advice.

    Talk to you soon.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Hide authors name and comments in posts – notes for Enfold v2.5’ is closed to new replies.