Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #968
    agoodforking
    Participant

    Hi Slavi
    I have just downloaded the child theme plugin, as I wish to upload a customised header into my site without changing the parent theme. However when I go to edit the child theme, it only comes up with the footer.php and not the header.php. How do I insert my own customised logo into the header of the new child theme? I am using the Hey Cookie theme.
    Thank you

    #977
    Slavi Marinov
    Keymaster

    Hi,

    My first though would be that you may have to copy the original header.php file into the child theme folder manually.
    In the next update I’ll add the header.php to the copied files.

    Slavi

    #1106
    LogoLogics
    Participant

    Hi,

    I am struggling with he same issue here.
    By the way, great plugin!

    I have copied the header.php and images folder from the parent and to the child theme folder.
    The images keep pointing to my parent and not to my child theme, therefore, it only shows my costum images, if
    I change them in the parent.

    My parent folder is “lucid”
    My child theme folder is “lucid-child-01″

    I tried replacing the lucid to lucid-child-01 but that does not work either.
    Could you help me and tell mee what I need to replace in my child theme ( created with your plugin ) to make the child images point to the child images folder please?
    Below the code in the header.php

    <?php
    $social_icons = ”;
    $et_rss_url = ” != et_get_option(‘lucid_rss_url’) ? et_get_option(‘lucid_rss_url’) : get_bloginfo(‘rss2_url’);
    if ( ‘on’ == et_get_option(‘lucid_show_twitter_icon’) ) $social_icons[‘twitter’] = array(‘image’ => get_bloginfo(‘template_directory’) . ‘/images/twitter.png’, ‘url’ => et_get_option(‘lucid_twitter_url’), ‘alt’ => ‘Twitter’ );
    if ( ‘on’ == et_get_option(‘lucid_show_rss_icon’) ) $social_icons[‘rss’] = array(‘image’ => get_bloginfo(‘template_directory’) . ‘/images/rss.png’, ‘url’ => $et_rss_url, ‘alt’ => ‘Rss’ );
    if ( ‘on’ == et_get_option(‘lucid_show_facebook_icon’) ) $social_icons[‘facebook’] = array(‘image’ => get_bloginfo(‘template_directory’) . ‘/images/facebook.png’, ‘url’ => et_get_option(‘lucid_facebook_url’), ‘alt’ => ‘Facebook’ );
    $social_icons = apply_filters(‘et_social_icons’, $social_icons);
    if ( !empty($social_icons) ) {
    echo ‘<div id=”social-icons”>’;
    foreach ($social_icons as $icon) {
    echo ““;
    }
    echo ‘</div> <!– end #social-icons –>’;

    #1107
    LogoLogics
    Participant

    By the way, to visualize it more, this is my test url: http://www.logologics.nl/Carels/
    The parent theme has black social icons. I replaced them with my own in the parents images folder.
    You can see how that looks in the parent theme before the update: http://www.specialistinvastgoedrecht.nl/

    After the update, it returns to the Original images.

    Thx,
    Annie

    • This reply was modified 11 years, 2 months ago by .
    #1108
    Slavi Marinov
    Keymaster

    Hi,

    I am glad that you like our plugin :)

    Can you try replacing template_directory with stylesheet_url?

    This get_bloginfo(‘template_directory’)
    should become get_bloginfo(‘stylesheet_url’)

    • This reply was modified 11 years, 2 months ago by .
    #1111
    LogoLogics
    Participant

    Hi and thx for your quick respons!

    I will try this and let you know if this works.
    Would be great if the header.php would be included in the next update as well.
    My custumazations in the footer.php where perfectly tranfered with your pluging.

    Annie

    #1112
    LogoLogics
    Participant

    Hi,

    Just replaced it but results in no images at all at the top http://www.logologics.nl/Carels/

    <?php
    $social_icons = ”;
    $et_rss_url = ” != et_get_option(‘lucid_rss_url’) ? et_get_option(‘lucid_rss_url’) : get_bloginfo(‘rss2_url’);
    if ( ‘on’ == et_get_option(‘lucid_show_twitter_icon’) ) $social_icons[‘twitter’] = array(‘image’ => get_bloginfo(‘stylesheet_url’) . ‘/images/twitter.png’, ‘url’ => et_get_option(‘lucid_twitter_url’), ‘alt’ => ‘Twitter’ );
    if ( ‘on’ == et_get_option(‘lucid_show_rss_icon’) ) $social_icons[‘rss’] = array(‘image’ => get_bloginfo(‘stylesheet_url’) . ‘/images/rss.png’, ‘url’ => $et_rss_url, ‘alt’ => ‘Rss’ );
    if ( ‘on’ == et_get_option(‘lucid_show_facebook_icon’) ) $social_icons[‘facebook’] = array(‘image’ => get_bloginfo(‘stylesheet_url’) . ‘/images/facebook.png’, ‘url’ => et_get_option(‘lucid_facebook_url’), ‘alt’ => ‘Facebook’ );
    $social_icons = apply_filters(‘et_social_icons’, $social_icons);
    if ( !empty($social_icons) ) {
    echo ‘<div id=”social-icons”>’;
    foreach ($social_icons as $icon) {
    echo ““;
    }
    echo ‘</div> <!– end #social-icons –>’;

    #1113
    LogoLogics
    Participant

    Oh, oeps I see I forgot something.
    I will try that now, sory.

    #1114
    Slavi Marinov
    Keymaster

    We are making a progress here:

    replace replace this:
    get_bloginfo(‘stylesheet_url’)

    with this:
    dirname(get_bloginfo(‘stylesheet_url’))

    #1115
    LogoLogics
    Participant

    Nope, does not get the costum immages as well?

    Thx,
    Annie

    #1116
    LogoLogics
    Participant

    Nope changed but still no images:

    <?php
    $social_icons = ”;
    $et_rss_url = ” != et_get_option(‘lucid_rss_url’) ? et_get_option(‘lucid_rss_url’) : get_bloginfo(‘rss2_url’);
    if ( ‘on’ == et_get_option(‘lucid_show_twitter_icon’) ) $social_icons[‘twitter’] = array(‘image’ => get_bloginfo(‘stylesheet_url’) . ‘/images/twitter.png’, ‘url’ => et_get_option(‘lucid_twitter_url’), ‘alt’ => ‘Twitter’ );
    if ( ‘on’ == et_get_option(‘lucid_show_rss_icon’) ) $social_icons[‘rss’] = array(‘image’ => get_bloginfo(‘stylesheet_url’) . ‘/images/rss.png’, ‘url’ => $et_rss_url, ‘alt’ => ‘Rss’ );
    if ( ‘on’ == et_get_option(‘lucid_show_facebook_icon’) ) $social_icons[‘facebook’] = array(‘image’ => dirname(get_bloginfo(‘stylesheet_url’)) . ‘/images/facebook.png’, ‘url’ => et_get_option(‘lucid_facebook_url’), ‘alt’ => ‘Facebook’ );
    $social_icons = apply_filters(‘et_social_icons’, $social_icons);
    if ( !empty($social_icons) ) {
    echo ‘<div id=”social-icons”>’;
    foreach ($social_icons as $icon) {
    echo ““;
    }
    echo ‘</div> <!– end #social-icons –>’;

    #1117
    Slavi Marinov
    Keymaster

    ok. Again we’re moving in the right direction.

    please use this function get_stylesheet_directory_uri() instead of get_bloginfo(‘stylesheet_url’) or dirname(get_bloginfo(‘stylesheet_url’))

    Also please copy all or some of the images from your parent theme to images/ folder of the child theme.

    This one exists
    http://www.logologics.nl/Carels/wp-content/themes/Lucid/images/twitter.png

    This one doesn’t
    http://www.logologics.nl/Carels/wp-content/themes/Lucid-child-01/images/twitter.png

    #1118
    LogoLogics
    Participant

    Great, thx you very much for your time!

    For now only the image LInkedin is back ( but that is the only one I replaced already myself in the parent after the upgrade. You are right the images folder was gone ( must have done that by mistake for it was uploaded earlier.

    This is how it looks now:

    <?php
    $social_icons = ”;
    $et_rss_url = ” != et_get_option(‘lucid_rss_url’) ? et_get_option(‘lucid_rss_url’) : get_bloginfo(‘rss2_url’);
    if ( ‘on’ == et_get_option(‘lucid_show_twitter_icon’) ) $social_icons[‘twitter’] = array(‘image’ => get_bloginfo(‘stylesheet_url’) . ‘/images/twitter.png’, ‘url’ => et_get_option(‘lucid_twitter_url’), ‘alt’ => ‘Twitter’ );
    if ( ‘on’ == et_get_option(‘lucid_show_rss_icon’) ) $social_icons[‘rss’] = array(‘image’ => get_bloginfo(‘stylesheet_url’) . ‘/images/rss.png’, ‘url’ => $et_rss_url, ‘alt’ => ‘Rss’ );
    if ( ‘on’ == et_get_option(‘lucid_show_facebook_icon’) ) $social_icons[‘facebook’] = array(‘image’ => get_stylesheet_directory_uri() . ‘/images/facebook.png’, ‘url’ => et_get_option(‘lucid_facebook_url’), ‘alt’ => ‘Facebook’ );
    $social_icons = apply_filters(‘et_social_icons’, $social_icons);
    if ( !empty($social_icons) ) {
    echo ‘<div id=”social-icons”>’;
    foreach ($social_icons as $icon) {
    echo ““;
    }
    echo ‘</div> <!– end #social-icons –>’;

    PS. I am going offline shortly, but will be back tommorow and try out if you had the time to reply.

    Have a good night and thx a bunch!
    Annie

    #1119
    LogoLogics
    Participant

    Hi Slavi,

    I am ready to try and solve this, if you are.

    Thx,
    Annie

    #1120
    Slavi Marinov
    Keymaster

    Hi Annie,

    As far as I can see there are still calls to get_bloginfo

    Slavi

Viewing 15 posts - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.