How do I properly code my footer? See example

you can use this code in the footer … <div class=”your-class-name”> <?php _e(‘Copyright &copy ‘, ‘textdomain’); ?> <?php echo date(‘Y’); ?> | <?php _e(‘Made by Dev ‘, ‘textdomain’); ?>| <a href=”#”><?php _e(‘Privacy Policy Terms of Use’, ‘textdomain’); ?></a> </div>

Check from functions.php if function exists in footer.php

You should not declare functions in your templates. The templates are for outputting content. The function_exists() will check if the function is declared before the function_exists() call, not after it, and templates are loaded after functions.php file, since you can control them by using the template_redirect filter. Declare your function in your theme’s functions.php file, … Read more

Cannot change footer text?

The original theme url here ( https://wordpress.org/themes/sornacommerce/ ) The theme working by using WordPress hooks You can update this file: sornacommerce\inc\theme-hooks.php on line 438 to 497 Otherwise remove the function on the hook like bellow: remove_action( ‘sornacommerce_site_footer_block’, ‘sornacommerce_site_footer_block’ ); Then add new function to the same hook like bellow: function wpse291732_footer() { // your function … Read more

add another html tag after li element in wp_nav_menu

When using wp_nav_menu() you can exclude the <ul> tag by setting the items_wrap to only include the list items (%3$s), then you can add your own <li> before or after that, and wrap it with <ul> yourself: <ul class=”footer-links”> <li> <p>copyright C 2021</p> </li> <?php wp_nav_menu( array( ‘menu’ => ‘Footer Navigation Menu’, ‘theme_location’ => ‘top_nav_menu’, … Read more

WordPress 5.1 upgrade has lost the parent theme JavaScript

I traced this back to the name of the scripts.js JavaScript file. My parent theme (BeTheme) enqueues the main scripts.js like this: wp_enqueue_script(‘mfn-scripts’, get_theme_file_uri(‘/js/scripts.js’), array(‘jquery’), MFN_THEME_VERSION, true); In my child theme crmpiccodotcom/footer.php I enqueue the scripts.js like this: // include the crmpiccodotcom child theme JavaScript add_action(‘wp_enqueue_scripts’, ‘crmpiccodotcom_enqueue_scripts’); function crmpiccodotcom_enqueue_scripts() { wp_enqueue_script( ‘custom-script’, CHILD_THEME_URI. ‘/js/scripts.js’, array(‘jquery’) … Read more

My website is not showing Footer section

Please add below code in your footer.php file above included JavaScript files : <?php if ( is_active_sidebar( ‘footer-1’ ) ){ dynamic_sidebar( ‘footer-1’ ); } if ( is_active_sidebar( ‘footer-2’ ) ){ dynamic_sidebar( ‘footer-2’ ); } if ( is_active_sidebar( ‘footer-3’ ) ){ dynamic_sidebar( ‘footer-3’ ); } ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)