• Hi everyone,

    I’m working on my website and i’m using structured data markup, and at the end, im suppose to add the codes to my website html source code.

    where can i find my website html source code so i could edit it and add the additional code?

    i am using a responsive theme from cyberchimps

Viewing 12 replies - 1 through 12 (of 12 total)
  • You can edit the source code of your website through an FTP client:

    https://codex.www.ads-software.com/FTP_Clients

    Note that any changes you make to theme files will be overwritten and lost when the theme is updated – so it’s STRONGLY recommended to use a Child Theme if you are making changes to theme files.

    https://codex.www.ads-software.com/Child_Themes

    WordPress uses theme files to generate the HTML for your site. Your theme is located in wp-content/themes/themename inside of which you’ll find the theme files. They’re named in a specific structure to create the theme.

    What markup do you need to add? If it’s stuff that needs to go inside <head>, you’ll need to edit header.php.

    Thread Starter Mistress92

    (@mistress92)

    well this is what i need to add:

    <!DOCTYPE html> <!– Microdata markup added by Google Structured Data Markup Helper. –>

    <div itemscope itemtype=”https://schema.org/LocalBusiness&#8221; id=”container” class=”hfeed”> <div id=”header”>

    <div id=”logo”> <img itemprop=”image”

    i know a little about html but i dont know where to put it

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What’s the point of changing the original files like that when your changes will just be erased next time the theme updates?

    Maybe the folks at cyberchimp can help you add this to your site.

    Thread Starter Mistress92

    (@mistress92)

    i’m not planning to update my theme anything soon, and if it erases it, i will simply do it again, i get the practice and there’s nothing wrong with dat

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    People are going to be using this thread as guidance for similar issues in future, so I just want to make it absolutely clear:

    If you modify an existing theme and it is updated, your changes will be lost. With a child theme, you can update the parent theme (which might be important for security or functionality) and still keep your changes.

    If you’re going down the route of not updating your theme then when the theme updates & security fixes are made, you need to manually add those fixes to the theme yourself unless you want your theme and installation compromised.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @christian1012, Nope Cyberchimps don’t support customisations.

    Thread Starter Mistress92

    (@mistress92)

    ok i already created a child theme, what should i do next?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Copy header.php from your theme and paste it into your Child Theme folder.

    Then you can modify header.php (from within your Child Theme) – That’s it. Safe to go.

    Thread Starter Mistress92

    (@mistress92)

    ok i will give it a shot, thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How to find the html source of your website’ is closed to new replies.