• Resolved mstanojcic

    (@mstanojcic)


    Is there a way to remove Powered by WordPress and Leeway. from footer?
    If it’s not possible to remove both, at least one of the two links instead?
    my site is at wrestling-serbia.org

Viewing 10 replies - 1 through 10 (of 10 total)
  • have you looked in your ‘footer.php’ file for those lines of code?

    Thread Starter mstanojcic

    (@mstanojcic)

    </nav>

    <div id=”footer-text”>
    <?php do_action(‘leeway_footer_text’); ?>
    </div>

    there’s no exact text, only something like this mentioning footer text

    i looked through the theme files. in a file called ‘template-tags.php’ there is this chunk of code that creates that text.

    // Display Footer Text
    add_action( 'leeway_footer_text', 'leeway_display_footer_text' );
    function leeway_display_footer_text() { ?>
        <span class="credit-link">
          <?php printf( esc_html__( 'Powered by %1$s and %2$s.', 'leeway' ),
    '<a href="https://www.remarpro.com" title="WordPress">WordPress</a>',
    '<a href="https://themezee.com/themes/leeway/" title="Leeway WordPress Theme">Leeway</a>'
          ); ?>
        </span>
    <?php
    }

    you can just change the ‘footer.php’ file if you want though. so change the code in the footer from

    <div id="footer-text">
        <?php do_action('leeway_footer_text'); ?>
    </div>

    to something like

    <div id="footer-text">
        <?php echo '&copy; SOME NAME' date("Y") ?>
    </div>

    Thread Starter mstanojcic

    (@mstanojcic)

    I changed with the exact text you posted, updated the file and checked the site: there’s no footer at all.
    O.o
    Is there any other way?

    sorry…I forgot a semicolon

    <div id="footer-text">
        <?php echo '&copy; SOME NAME' date("Y"); ?>
    </div>
    Thread Starter mstanojcic

    (@mstanojcic)

    same thing.
    interesting is that after updating footer.php with new code and visiting site also dashboard disappears also with the footer.

    how much code are you replacing? can you share a link to your site?

    Thread Starter mstanojcic

    (@mstanojcic)

    I’m replacing just one line
    <?php do_action(‘leeway_footer_text’); ?>
    with
    <?php echo ‘© SOME NAME’ date(“Y”); ?>

    Site is on https://wrestling-serbia.org/

    theres something else missing. im so sorry. im used to using a code editor that is colored a certain way. its harder here. try this

    <div id="footer-text">
        <?php echo '? SOME NAME' . date("Y"); ?>
    </div>

    and you can change that line of code to whatever you want. thats just a standard copyright and date (year)

    Thread Starter mstanojcic

    (@mstanojcic)

    It works! Thanks a lot for the help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Remove Powered by’ is closed to new replies.