robertarch
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Base WP] Add extra content to headeruse the following in your child functions.php (don’t use the ones above):
require_once( get_stylesheet_directory() . ‘/inc/assets/template-functions.php’);
copy the assets folder to your child theme.
the extra content goes in base-wp-child -> inc -> assets -> template-functions.php just below the_custom_logo(); (line 11)
ie echo ‘<div>some content</div>’;
I hope that explains it better
RobForum: Themes and Templates
In reply to: [Base WP] Add extra content to headerProblem solved
Forum: Themes and Templates
In reply to: [Base WP] Add extra content to headerUpdate:
Instead of using:
require get_template_directory() . ‘/inc/assets/template-functions.php’;
Use:
get_stylesheet_directory_uri() . ‘/inc/assets/template-functions.php’;in the functions.php
Problem solvedForum: Themes and Templates
In reply to: [Base WP] Add extra content to headerUpdate:
I have added the extra content in base-wp -> inc -> assets -> template-functions.php just below the_custom_logo(); (line 11)
ie echo ‘<div>some content</div>’;
This works as it is now placed in the correct div – ‘<div class=”site-branding”>’.
I really want to stick to using the child theme, but when I place the assets folder in the child theme and make the above changes in there instead of the parent, it does not recognise it.
I added require get_template_directory() . ‘/inc/assets/template-functions.php’; to my functions.php but this throws an error
Cannot redeclare igthemes_adjust_color_brightness() (previously declared in …. base-wp
So this is now a problem of over-riding parent theme functions, I guess. There has to be an easier way.
Cheers
RobForum: Fixing WordPress
In reply to: How to add subtitles video short codeHi Rob,
You are a champion. Thanks for that. It also supports .srt files.
Brilliant, thanks again.
RobForum: Themes and Templates
In reply to: [Base WP] Set new Nav bar break pointHi,
My error.
I had given up on my child theme style sheet and had started editing the parent theme style sheet, which I never do. I forgot that the child style sheet still had references to @media 801px. Anyway your method in the post one year ago works. I have decided to use the ‘responsive menu’ plugin as this gives a better look, I find anyway. If anyone wishes to use that plugin then in the options ‘css menu to hide’ is #site-navigation.
The theme itself is terrific and it has allowed me to do a huge amount of things that I couldn’t do with other themes.
Please keep up the great work.