Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter robertarch

    (@robertarch)

    use 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
    Rob

    Thread Starter robertarch

    (@robertarch)

    Problem solved

    Thread Starter robertarch

    (@robertarch)

    Update:
    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 solved

    Thread Starter robertarch

    (@robertarch)

    Update:
    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
    Rob

    Thread Starter robertarch

    (@robertarch)

    Hi Rob,
    You are a champion. Thanks for that. It also supports .srt files.
    Brilliant, thanks again.
    Rob

    Thread Starter robertarch

    (@robertarch)

    Hi,
    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.

Viewing 6 replies - 1 through 6 (of 6 total)