Home › Forums › Community Support Forum › WordPress Plugins › Orbisius Child Theme Creator › inserting customised logo
Tagged: changes, child theme, header.php
- This topic has 20 replies, 3 voices, and was last updated 11 years, 3 months ago by Slavi Marinov.
-
AuthorPosts
-
August 12, 2013 at 7:02 am #968agoodforkingParticipant
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 youAugust 12, 2013 at 3:03 pm #977Slavi MarinovKeymasterHi,
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
September 16, 2013 at 6:02 pm #1106LogoLogicsParticipantHi,
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 –>’;September 16, 2013 at 6:06 pm #1107LogoLogicsParticipantBy 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, 3 months ago by .
September 16, 2013 at 6:07 pm #1108Slavi MarinovKeymasterHi,
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, 3 months ago by .
September 16, 2013 at 6:11 pm #1111LogoLogicsParticipantHi 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
September 16, 2013 at 6:16 pm #1112LogoLogicsParticipantHi,
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 –>’;September 16, 2013 at 6:19 pm #1113LogoLogicsParticipantOh, oeps I see I forgot something.
I will try that now, sory.September 16, 2013 at 6:21 pm #1114Slavi MarinovKeymasterWe are making a progress here:
replace replace this:
get_bloginfo(‘stylesheet_url’)with this:
dirname(get_bloginfo(‘stylesheet_url’))September 16, 2013 at 6:22 pm #1115LogoLogicsParticipantNope, does not get the costum immages as well?
Thx,
AnnieSeptember 16, 2013 at 6:26 pm #1116LogoLogicsParticipantNope 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 –>’;September 16, 2013 at 6:32 pm #1117Slavi MarinovKeymasterok. 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.pngThis one doesn’t
http://www.logologics.nl/Carels/wp-content/themes/Lucid-child-01/images/twitter.pngSeptember 16, 2013 at 6:45 pm #1118LogoLogicsParticipantGreat, 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!
AnnieSeptember 17, 2013 at 4:09 am #1119LogoLogicsParticipantHi Slavi,
I am ready to try and solve this, if you are.
Thx,
AnnieSeptember 17, 2013 at 12:54 pm #1120Slavi MarinovKeymasterHi Annie,
As far as I can see there are still calls to get_bloginfo
Slavi
-
AuthorPosts
- You must be logged in to reply to this topic.