• Hello i dont know if this is the right category to post this but i have this code in a theme template

    <div id="sidebannerp">
    <a href="" target="_blank" title=""><img src="" /></a>
    </div>

    Its a simple styled container with an image and a link.

    This is a form of banner and to change it everytime i have to upload the picture in the proper folder and then edit the href.

    So i want to make it so that i will be able to change the href link in wordpress admin page instead of editing everytime the php file of the theme like how are settings of a theme where you alter the code from worpress admin panel.I know(or at least i think) that this isnt simple so i would like to know where i should start looking for to learn about how to do it (languages to learn e.t.c).Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    PHP is the primary language of WordPress. You could start here: https://www.w3schools.com/php/default.asp
    Naturally you should know HTML and CSS as well. Sooner or later you’ll run into JavaScript and jQuery too.

    If you are going to change the code of your theme’s templates, you will want to make a child theme. Specifically for using a particular image on a post you might be interested in featured images.

    Good luck! ( and have fun ?? )

    Thread Starter jumaru7

    (@jumaru7)

    Thank you very much friend for the answer.Im already into learning php from w3schools, as for html and css im pretty good (not great).The only thing that troubles me is that in w3schools it says at the beginning of php that you should know basic javascript.Is this true?

    Moderator bcworkz

    (@bcworkz)

    Huh, that’s curious. Knowledge of JavaScript is not a prerequisite to PHP, I’ve written tons of PHP with no JS involvement at all. You will eventually run into the need, but for now it’s not essential. Unless perhaps the tutorial is structured in a way that uses JS in it’s examples, for AJAX handlers for instance.

    IMO, w3schools leaves much to be desired, but it’s a handy quick reference with working examples. You may do well to find another resource that fits your learning style better. TBH, I never “learned” PHP in the traditional sense, I picked it up along the way, finding out what I needed as the need arose. Nearly all I know of PHP comes from php.net and from examining WP core code!

    Try codecademy

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change code from WordPress Admin directions’ is closed to new replies.