Identify the page I am viewing

is_home() will do just exactly that. It returns true on the home page and false on any other page. Your solution will be to completely wrap your code above in an is_home() conditional if ( is_home() ) { // Your in question comes here }

WordPress Footer Missing After Website Hack

Getting hacked with WordPress is not a great thing to experience. Did you take a look at the Hardening WordPress codex page? Most of the time you get extra PHP code in some of your WordPress Core, Theme and plugin files. I guess this happened to you too and tried to remove this. Could it … Read more

editing footer text in JBST theme

The footer credits are output by the jbst_credits custom action, which has the jbst_custom_credits() callback: function jbst_custom_credits() { if(get_theme_mod(‘footer_credits’) <> “”) {echo get_theme_mod(‘footer_credits’);} else {?> <?php printf( __( ‘&copy;’, ‘jamedo-bootstrap-start-theme’ )); ?> <?php echo date(‘Y’);?> <?php echo bloginfo(‘name’);?><span class=”sep”> | </span><a target=”_blank” href=”https://wordpress.stackexchange.com/questions/135687/<?php esc_attr_e(“http://www.jbst.eu/’, ‘jamedo-bootstrap-start-theme’ ); ?>” title=”https://wordpress.stackexchange.com/questions/135687/<?php esc_attr_e(“Powered by JBST’, ‘jamedo-bootstrap-start-theme’ ); ?>” rel=”generator”><?php … Read more

Using wp_register_style to load CSS in footer?

Technically styles should only be output in head and outputting them elsewhere is invalid HTML (browsers are however very lax about it and don’t care much). So in best interest of standards WordPress wouldn’t do something like that. Right? Right!? It does without bit of remorse actually. There is print_late_styles() function, running in footer that … Read more

Where is the admin bar instantiated?

Here is the backtrace of the adminbar rendering in the home page of the backend for WordPress 4.9.2 array ( ‘file’ => ‘wp-admin/index.php’, ‘line’ => 100, ‘function’ => ‘include’, ) array ( ‘file’ => ‘wp-admin/admin-header.php’, ‘line’ => 219, ‘function’ => ‘do_action’, ) array ( ‘file’ => ‘wp-includes/plugin.php’, ‘line’ => 457, ‘function’ => ‘do_action’, ‘class’ => … Read more

How do i change the footer?

The wp_footer() function is a WordPress hook. It allows plugins to place additional content at the bottom of the page – this is very useful if you’re installing tracking scripts like Google Analytics. But that function is not what is adding copyright information or other junk usually bundled with free themes. Instead, look in the … Read more

How to edit footer

At first go to theme directory find inc>functions.php then search for “colormag_footer_copyright” edit this code bellow as you need: add_action( ‘colormag_footer_copyright’, ‘colormag_footer_copyright’, 10 ); /** * function to show the footer info, copyright information */ if ( ! function_exists( ‘colormag_footer_copyright’ ) ) : function colormag_footer_copyright() { $site_link = ‘<a href=”‘ . esc_url( home_url( “https://wordpress.stackexchange.com/” ) … Read more