Jump to content
colintsui

change branding social icons image file in child theme and add rel="nofollow"

Recommended Posts

colintsui

Hello,

How do I changed the social icon images in the branding section while using child theme? I have uploaded new png files to replace old ones to use for other social networks but when updating the theme today it changed back to the default icons, so how do I implement this using child theme so I dont get overwritten when updating themes next time?

Also, is there a way to add rel="nofollow" to the social icon links and rss links? I believe this is an important SEO issue.

Thanks,

Colin

Share this post


Link to post
Share on other sites
catrina

You'll need to make a copy of the folder where you are uploading the icons and add it to the child theme folder then add the icons in there. The nofollow property will need to be added by editing the section PHP file (where the social icons links are located: branding folder > section.php) in the child theme.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
colintsui

Hi Catrina,

I copied the entire branding folder to the child theme inside the sections folder but seems like it's still loading from parent theme, the sections.php is also loading from parent theme. Below is the folder structure, the linkedin.png is actually another social site icon. Thanks!

structure.png

Regards,

Colin

Share this post


Link to post
Share on other sites
Danny

If the child section is not working then something is incorrect. Can you provide a full screenshot of your child themes directory so we can take a closer look.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
colintsui

Danny,

do you mean the code inside the php files? the above image is the complete screenshot of the child theme directory

Colin

Share this post


Link to post
Share on other sites
Danny

OK, I have just created a new test site, installed the Base child theme and then added the Branding section folder to the child themes sections folder. I then made a similar change the Youtube.png name and then added a new file and called this youtube.png.

When I refresh my test site the changes have taken place - http://d.pr/i/kxIW

Therefore, you have not created your child theme correctly, you're as far as I can see missing the setup.php file and a few other less important ones.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
colintsui

i followed the guide on wordpress codex to make the childtheme and it didn't mention setup.php? is it possible to refer to somewhere about the setup.php and other minor ones? or can you email the files you used in your child theme? thanks, colin.

Share this post


Link to post
Share on other sites
Danny

Hi,

There is a free base child theme in the PageLines store, use this one instead of creating on based on the Wordpress guide.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
colintsui

Thanks! I didn't know there's a premade child theme, everything solved!

Share this post


Link to post
Share on other sites
Danny

The topic was marked as resolved.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • Dan Haddock
      By Dan Haddock
      DMS: Latest Version
      Running a Child Theme
      Wordpress: 4.8.3
      Plugins:
      Akismet Anti-Spam 
      Coming Soon Page & Maintenance Mode by SeedProd
      Contact Form 7
      Cookie Law Info
      DMS Professional Tools    
      Enhanced Media Library
      Flamingo
      Google Analytics for WordPress by MonsterInsights
      Google XML Sitemap    
      Jetpack by WordPress.com
      Legull
      Loginizer   
      MailChimp for WordPress
      PageLines Updater
      Really Simple SSL
      Schema App Structured Data
      Sucuri Security - Auditing, Malware Scanner and Hardening  
      Uber reCaptcha
      Yoast SEO
      Problem Below
      Hi Team,
      I am looking to style the Continue Reading Button with the PHP you provided in an earlier ticket here: 
       
      I put the PHP code into my site, however I do not get my Icon back, I just get back Read More >>
      I have attached a screenshot of the code in place on my site along with the output.
      Interested to know what I may be doing wrong? - I am very new to PHP so a bit apprehensive on this.
      The Images: https://drive.google.com/open?id=0B0i4JJXa2jdQN2xoakZNRUdmaU0
      Let me know if you need any more information from me.
       
    • flourishdesignstudio
      By flourishdesignstudio+
      Hello,
      We are working on a site and the customers are complaining that the site loads too slowly. They contacted their host who mentioned that the Java Script is all loading at the beginning. Is it possible to delay the load of the less important Java Script until after the initial load to speed up the site? The goal is to load the page faster by minimizing the initial javascript calls.
      Are there any preferred plugins that you would recommend or does this end up causing excessive problems with plugins, etc.?
      Thanks for the help!
    • flourishdesignstudio
      By flourishdesignstudio+
      I am working on a multisite installation and had some questions regarding the themeing options. All the sites will have the same structure but each individual site would need a different h1 font and link color. I had originally thought that I would program/edit the parent theme to have a certain set of templates, font sizes, etc. and then that would feed to all the individual sites where I could activate the child theme and use the child theme to define the individual sites' specific link color, heading fonts, etc. So, what I was shooting for was:
      Parent theme = shared by all sites
      Child theme = specific to the minor customizations on a per site basis.
      Is this possible? Am I misunderstanding how these would actually deploy to the different sites?
    • jagipson
      By jagipson+
      Should be a simple answer but not sure why its not doing this.  I have a child theme installed on pagelines 5 that has a hook so it will write over the theme css. Strange is that when I am on the frontend the code works but in the dashboard your theme takes over my code and its no where to be found. See examples attachments
      @Andrew @Danny


×