• hello everybody.

    I found out that I can analyze source code of my website with firebug, an add on for firefox:

    If you take a look at the screenshot I linked you’ll see a section of the site. It’s the section for posts. I don’t plan to use it for this purpose in the future and have no posts set at the moment.

    https://www.pasteall.org/pic/show.php?id=85591

    therefor this section contains the message

    Nicht gefunden
    Es tut mir leid, aber Sie suchen nach etwas, was nicht hier ist.

    translation:
    I’m sorry
    but your looking for something which is not here

    In the screenshot I have circled the message in magenta and the corresponding code in green.

    at the bottom on the right you can see the code in detail.

    now my question is:

    how can I disable the code the way that the whole posts section isn’t displayed on the website anymore. Ideally I would like the website to be closed right under the front page content boxes. the footer that contains pieces of information concerning the theme can be left for the moment.

    I want to disable the code in a manner that gives me the option to reactivate it later.

    thanks for your responses.

    regards

    torsten

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter botvillian

    (@botvillian)

    Hi botvillian,

    you can disable it via commenting line 880 & 884 in index.php

    Thread Starter botvillian

    (@botvillian)

    hi FarzamF.

    thanks for your reply.

    I tried to disable the code by putting a hash at the beginning of each of both lines. but that obviously was not expedient.

    what do I have to do exactly?

    regards
    torsten

    Thread Starter botvillian

    (@botvillian)

    just this minute I found this website:

    they write:

    To hide or deactivate PHP code in a template file:

    <?php // the_content(Continue Reading...); ?>
    
    or
    
    <?php /* the_content(Continue Reading...); */ ?>

    I also tried this. I put

    <?php //

    at the beginning of line 880 and

    ?>

    at the end of the line.

    same for line 884.

    no effect.

    what am I doing wrong?

    the whole original code section I want to change is:

    <h1 class="entry-title"><?php _e( 'Not Found', 'evolve' ); ?></h1>
    
    					<!--BEGIN .entry-content-->
    					<div class="entry-content">
    						<p><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'evolve' ); ?></p>

    It’s in the index.php of my theme folder:

    /wp-content/themes/evolve

    just try to delete that line

    Thread Starter botvillian

    (@botvillian)

    I have found the solution on the german wordpress forum:

    open style.css and put the following code at the bottom:

    body.home #primary {
    display: none;
    }

    done!

    thanks for your help.

    regards
    torsten

    i’m really happy to here that you found the solution botvillian

    good luck

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘disabling theme code’ is closed to new replies.