• Hi ! First, i’ll tell you that i am not a coder, i am learning…

    I took a look at my source code and it did not look very good. I used ?Dirty Markup? and it cleans the html wich gave a better look to the source code.

    Now, i searched for days how or where to replace the previous code with the new one. With what i read, because the code contains html, css, java… there different files we have to look at.

    So, my question is : is there someone who can explain me how/where to replace the source code i found with Google’s tool to see code ? Thanks and sorry if i maybe made english mistakes, i’m french canadian. Strangely, i learn better reading in english. ?? Thank you.

    Dan

Viewing 6 replies - 1 through 6 (of 6 total)
  • If you want WordPress to work you cannot willy-nilly replace source code. Code problems might come with plugin conflict or with your own entries for posts, pages or widgets.

    David_G

    (@questas_admin)

    What exactly are you trying to do? The source code is the end result of everything you put into your site.

    @danicolas07

    To update code from you can see in Google Chrome Inspector (I adviced some people to do that), then you have to physically modify files in a theme folder, like .css files or .php files.

    For example, you use a theme called “magazine-theme”.
    You’ll have to search your hard drive for wp-content/themes/magazine-theme
    and a file called style.css or so.

    Edit it with a good webdesigner text/code tool (sublime on mac, pspad on pc for example, there are tons of good tools). Then, once file is saved, upload it on your webserver at the right location to overwrite the current file. Then push refresh button on your browser, to see changes.

    Hope it helps,

    Wrong. Unless at every upgrade you want to break your site. For changing css use a child theme. Look it up at www.remarpro.com (Sorry not on my computer.) Do not change php files.

    @kmessinger

    Not “wrong”, in any case (parent or child theme) and according to question, it’s the same approach (with different urls).

    Subject is mainly how to work with files and edit them, not X or Z URL.

    If you can guess question is from a parent or child theme, I buy your advice ??

    Thread Starter danicolas07

    (@danicolas07)

    Hi everybody! Sorry for the delay. Thank you for your explanations.

    @questas_admin
    I want to have ?clean? source code for SEO. I know that the source code is the result of everything… But i was hoping that there was a way to find where i can edit code.

    @digico paris, thanks, i’ll try your trick and @kmessinger, i have a child theme where i put changes, not to lose everything when an upgrade appears.

    It would be long to explain how i work, what i do… Just say again i am a ?debutant?, i use Elegant Themes (drag & drop), i use a child theme to change code in style sheet, header, footer etc… I’m able to change code to have what i need, media queries too…

    If you take a look at kmessinger site’s source code (example). Everything’s well aligned : ?meta?, ?link?, ?ul?… all together… And if you want to take a look at one of my site source https://extensionscl.com You’ll see that i have a lot to learn… ??

    Maybe you’ll tell me: ?go back at the beginning of wordpress, you don’t know how to build a site?, it’s OK. But maybe someone can tell me few things or direct me to a link where i could learn rapidly… what to do ?

    Sorry for this long message, but do you think that with source code like mine, i’ll be penalized by Google? Thank you very much for your help and understanding. Maybe one day, i’ll be as good as you are. I learn by myself… One day at a time. Dan

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Source code éditing’ is closed to new replies.