• Resolved Edwin

    (@rollerband)


    Im using the child theme. However, nothing has changed or new plugin installed.
    My last done was on the function.php where I wanted to insert adsense at the last of every single post.
    Pasted this after following steps. I did insert the code before saving.
    However, not able to recover by deleting the code below.
    Pls Help.

    https://www.ads-software.com/support/topic/twenty-ten-which-code-to-edit-to-include-google-adsense-code-after-each-post?replies=8

    function adsensesinglebottom($content) {
    
    if(is_single()) {
    
    	global $post;
    
    	$content = $content.'
            <div id="adsinglebottom">
            INSERT ADSENSE CODE HERE
            </div>';
    
    }
    
    return $content;
    
    }
    
    add_filter( 'the_content', 'adsensesinglebottom' );

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try switching to the default theme by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    Thread Starter Edwin

    (@rollerband)

    My questions is by changing the existing folder name with “-old” at end of the folder, you are saying by doing this will change to default theme automatically?

    I have Filezilla. Never try changing theme from filezilla to switch themes. Usually through WP-admin page.

    Now, I realized that I cannot even access to wp-login.php page. Nothing appear in my home page, either.

    Thread Starter Edwin

    (@rollerband)

    {Resolved}

    I retrieved the functions.php file and pasted the original code.
    The earlier method of recovering by deleting the code doesnt work cos Im back-paging to revert to original.
    File already saved once when clicking “Update File”.

    Thank you!

    you are saying by doing this will change to default theme automatically?

    Yes

    Thread Starter Edwin

    (@rollerband)

    you are saying by doing this will change to default theme automatically?

    @esmi
    Interesting to learn abt this…
    Will try for troubleshooting theme issues next time.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP Admin Page Showing Blank for Every Menu Clicks’ is closed to new replies.