Theme Author
Guido
(@guido07111975)
Thanks for your nice review!
if you want to display the header on every page, you should remove two elements from file header:
Line 43:
<?php if ( is_front_page() ) {?>
Line 47:
<?php } ?>
Guido
That works well, thanks. But I would have to do this every time after an update. Don’t you think it would be better to add an option to the backend to switch it on or off?
Theme Author
Guido
(@guido07111975)
Hi,
I might add this, when I update my theme(s) again. Meanwhile you could create a child theme and include the adjusted file header.
This child theme is a zip-file that contains 4 files:
1) A CSS file called style:
/*
Theme Name: OneColumn Child Theme
Version: 1.0
Description: This is a child theme.
Author: robologon
Template: onecolumn
*/
// If you have CSS changes, you could add them here
2) A PHP file called functions:
<?php
/*
* Child Theme functions and definitions.
*/
// Get stylesheet from parent theme
function onecolumn_extra_scrips() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'onecolumn_extra_scrips' );
3) Your adjusted header file.
4) A png screenshot (880px wide x 660px heigh).
Create a zip-file from these 4 files, name it “child-theme” and install it like a regular theme.
Guido
-
This reply was modified 8 years, 2 months ago by
Guido. Reason: adjusted my response
Thanks for this manual. I did it without adding the png screenshot (880px wide x 660px heigh). I used an uncut .jpg file of my wp-backend. Please have a look: https://www.dietmarjanowski.de/wordpress/
I stay tuned for your next update. It would be nice to inform me when it’s online.