• Hello,

    I am a total rookie. Please, basic, step by step help.

    This sounds easy but I’m stuck… trying to change an Alt attribute of a link that is in the header of a WP site. When I “view source” I can see exactly what I want to change. But within WordPress or within my C-Panel Files I can not find the text that I want to change for the life of me.

    <span class="webkit-html-attribute-value">View Our Profile In Linkedin!</span>

    That is an example of what I see when I “Inspect Element” with Google Chrome.

    I want “View Our Profile In Linkedin” to read “Follow Us On Pinterest”.

    However, if I change the text on the Google Chrome Inspect Element page I do not know how to save the changes and I can not find that text within wordpress or c-panel.

    It is a simple modification of an hyperlink alt attribute but I’m stuck. Help would be greatly appreciated!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It sounds as though you need to be using a Child Theme.

    A Child Theme is just another directory in /wp-content/themes/ that inherits the functionality of your current theme, but provides an environment whereby your changes will not compromise the theme and not be compromised when the theme updates.

    To edit the header.php within your Child Theme, take a copy of the header.php file from your actual theme and paste it into the Child Theme directory. You can then work on that Child Theme header.php file safely.

    Thread Starter mr_fancy_pants

    (@mr_fancy_pants)

    Thank you very much for the reply Andrew!

    I want to understand your explanation before I make drastic changes. To clarify I have not caused any problems with the theme, I just can not find the text that I want to alter.
    If I were to:

    take a copy of the header.php file from your actual theme and paste it into the Child Theme directory.

    Would that somehow make the missing text that I need to modify appear? Wouldn’t the same text copied from the original directory appear in the new directory? What am I missing? How would a new directory help me find the text that I want to modify?

    I’m wondering if I just do not understand CSS or webkit-html. I was hoping someone would explain the proper file or way to pull up and modify this kind of code. It all looks great in the browser but I just can not find where it is pulling this specific text from.

    Do my comment make sense or am I missing something? Thanks again.

    Thread Starter mr_fancy_pants

    (@mr_fancy_pants)

    Anyone else? Please

    This has nothing to do with CSS class webkit-html-attribute-value.

    The text is output (echo) by php, so your theme must have a feature for user to input the social links, look for theme’s settings, it must be there, or if you use widget to output that social links, just go there and configure it.

    Thread Starter mr_fancy_pants

    (@mr_fancy_pants)

    Thanks Paulwp,

    Yes I do have “theme options”. And yes there are options to fill in some links to various social networks in automatically put icons in the header. The problem is that there is a Linkedin Option but not Pinterest so I am trying to modify the template to put Pinterest where there is Linkedin. That is the wording that I am trying to modify in the Alt Attribute.

    But I can not find a place to modify the Alt Attribute. I’m looking for every single instance of Linkedin that I can find but I can not find that Alt Attribute. Any thoughts? Anyone else?

    If it’s a theme hosted at WP.org, link to it so I ( or many others here ) can take a look, also it’s better to tag the topic with theme’s name so that the theme’s author can help out.

    If it’s a paid theme, then it’s against the rule here, paid themes have their own support system, the theme vendors will provide better support and you can ask for adding feature to the theme you paid for too.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘webkit-html-attribute-value, CSS, Help Please – Real Rookie’ is closed to new replies.