• Resolved sh3dxz

    (@sh3dxz)


    Hi, I cant seem to find out how to remove powered by WordPress from the home page of my website: https://www.shediqa.com It only shows up on the HOME page when my website is viewed from a mobile device.From a computer it is fine. SO I would like to know how to hide the text that pops up all the way at the bottom on my mobile device. I am not using JetPack Mobile Theme.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The whole container with the Powered by .. etc is actually in your markup on desktop as well, it is just being hidden.

    #infinite-footer has a position:fixed; bottom:-50px; which hides it from the screen. At a certain browser size #infinite-footer switches to position:static; and appears.

    These styles all appear to be coming from Jetpack’s infinite scroll module – It also looks like there is a filter infinite_scroll_credit in place to customize this. You could try the following (untested).

    add_filter( 'infinite_scroll_credit', 'your_footer_text' );
    
    function your_footer_text() {
        return;
    }

    Or you could keep it in your markup but hide it from the front end by just adding the following CSS:

    #infinite-footer { display:none !important; }

    Thread Starter sh3dxz

    (@sh3dxz)

    Thank you for responding. Also I did go ahead and disable the mobile theme in jetpack as well as delete the cached files so I am not sure why it would show up. The infinite scroll is also off.Im new to wordpress so I honestly dont know where to put that code. Would it be the functions.php file of the child theme?

    Yes, you would add that code block to the functions.php file of the child theme.

    Thread Starter sh3dxz

    (@sh3dxz)

    It didnt work and now all I have is: syntax error, unexpected ‘function’ (T_FUNCTION)

    Thread Starter sh3dxz

    (@sh3dxz)

    I dont know what this means: Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home4/sh3dxz871991/public_html/wp-content/themes/flatter-child/functions.php on line 20

    Thread Starter sh3dxz

    (@sh3dxz)

    I cant access anything now, neither the dashboard for my website. How do I fix the whole thing?

    Hmm.. Is this in between <?php and ?> properly? Can you post the code you have there?

    Also, are you doing this in production? It is always better to have a development environment to troubleshoot on.

    I do not see it there anymore and your site is not throwing errors on my end.

    Thread Starter sh3dxz

    (@sh3dxz)

    <?php
    // Exit if accessed directly
    if ( !defined( ‘ABSPATH’ ) ) exit;

    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED – Do not modify or remove comment markers above or below:

    if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
    function chld_thm_cfg_parent_css() {
    wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’ );
    }
    endif;
    add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’ );

    // END ENQUEUE PARENT ACTION

    Thread Starter sh3dxz

    (@sh3dxz)

    I went into the ftp settings and deleted the code from the functions.php file. SO that is why it is back up now. Ive never modified the code before so Im not sure what you are talking about. Also not sure what I am doing wrong. I just copied and paste the code and it went wrong.

    Thread Starter sh3dxz

    (@sh3dxz)

    Hey! You are soooo awesome! Thank you so much. I just checked my phone and the credits in the footer are gone. I had omitted the ?> symbol so you were right. My apologies. And you have a great day! ??

    Thread Starter sh3dxz

    (@sh3dxz)

    Thanks for the help!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Powered by WordPress showing on Home Page Only’ is closed to new replies.