Forums

[resolved] How to find and remove an element in a Theme (7 posts)

  1. owomo
    Member
    Posted 3 years ago #

    Hi...I have a problem in my site, trying to adapt a theme called Phantom. in a gallery project recently on development. There is a message (Commnets Off) appearing just under the title name of every picture (which actually are thumbnails of the latest posts) in my home page when I cancel the permission for people to write comments at the Dashboard area. I have try hard to find the corresponding code on the CSS style sheet to remove it, but even using a tool as CSS viewer from Fire fox to show the details of each element in a webpage it has been until now impossible to do it. I would like to know If anyone can suggest something to achieve this goal.

    Thanks
    ow

  2. webfwrd
    Member
    Posted 3 years ago #

    Okie, just open the theme folder, find comment.php and search for "Comments Off" and remove the whole line. Normally it will be like <p class="nocomments"><?php _e('Comments Off') ?></p>

  3. owomo
    Member
    Posted 3 years ago #

    Thank you so much for answering so fast. :) Well, I've tried already this tip, actually in this theme 2 files with comment name are included. The other one its called "comments-popup". The line of code as you wrote it, does not exist on both files, yet I tried removing the lines referring to closed comments instruction and the phrase just don't disappear. My last try was to remove even the whole files via FTP from the server and "Comments Off" was still there. Any clue?

    P.S. I've checked the style sheet for the name and is not there either.

    Is necessary to include the code of some file in other post?

    thanx again.

  4. webfwrd
    Member
    Posted 3 years ago #

    In that case, probably the comment tag is put inside another file other than comment.php and comments-popup.php. I can't seem to find a theme name Phantom at the link you provided as well.

    It will help if I can look at the theme files...Do you still have the link to that theme?

  5. asfodel
    Member
    Posted 3 years ago #

    I'm not very good at these things... but it seems to me that you need to delete this line from the index.php:
    <span><?php comments_popup_link('0', '1', '%'); ?></span>

  6. owomo
    Member
    Posted 3 years ago #

    Here is the link to the theme files, meanwhile I´ll try asfodel option.

  7. owomo
    Member
    Posted 3 years ago #

    Hey! asfodel solution worked!...

    Thanx so much! you rule!...:D

Topic Closed

This topic has been closed to new replies.

About this Topic