Jump to content
colintsui

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

Recommended Posts

colintsui    0
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    103
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    0
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    1,327
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    0
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    1,327
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    0
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    1,327
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    0
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    1,327
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

    • 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


    • TallTree
      By TallTree+
      Hi,
      I am trying to remove the sidebar areas from my child theme (pagelines.com) from the post pages on a site:
      https://staging4.talltreemusicfestival.com/2017/grand-analog/
      The content is all the way to the left and very small, and the two sidebar areas are taking up a lot of space.
      What I'm after is content to the left, taking up most of the space, and then a small sidebar width on the right for widgets.
      I've tried selecting 'read width content' and 'full width content' in the edit screen for the WP content section, but it doesn't change.  If I try to move the sidebars (1 or 2) to the left, it doesn't change.
      If I select the pagelines framework theme (not child), the two sidebars go away when not selecting them in the edit screen..
      Can someone please tell me what I'm doing wrong?
      Thanks in advance.
      -Matt
       
    • dbrowne02
      By dbrowne02+
      Hi, I noticed that framework and pagelines.com child theme has a number of errors when run through themecheck. The others, like material and bootstrap, don't have any errors when run through theme check. Is there a way to get it so that there are no errors on the child theme?

×