have you looked in your ‘footer.php’ file for those lines of code?
</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="http://ww.wp.xz.cn" title="WordPress">WordPress</a>',
'<a href="http://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 '© SOME NAME' date("Y") ?>
</div>
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 '© SOME NAME' date("Y"); ?>
</div>
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?
I’m replacing just one line
<?php do_action(‘leeway_footer_text’); ?>
with
<?php echo ‘© SOME NAME’ date(“Y”); ?>
Site is on http://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)
It works! Thanks a lot for the help.