Add Javascript To Specific WordPress Pages Using Functions.php

Поділитися
Вставка
  • Опубліковано 2 січ 2018
  • Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: wplearninglab.com/17-point-wp...
    Add Javascript To Specific WordPress Pages • Add Javascript To Spec...
    Link to blog post with code: wplearninglab.com/add-javascr...
    Link to Conditional Tags in WordPress codex: codex.wordpress.org/Condition...
    If you want to add JavaScript to a specific page in WordPress this is how you do it without using a plugin. You do have edit the functions.php file, so do that carefully. Backup your existing functions file if you need to. Then just use the code from the blog post to add JavaScript to any page on your WordPress site.
    Stop brute force attacks before they happen with this workshop: wplearninglab.com/brute-force...
    Grab your free 17-Point WordPress Pre-Launch PDF Checklist: vid.io/xqRL
    Download your exclusive 10-Point WP Security Checklist: bit.ly/10point-wordpress-harde...
    I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.
    --------------
    If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.
    wplearninglab.com/
    Connect with us:
    WP Learning Lab Channel: ua-cam.com/users/subscription_c...
    Facebook: / wplearninglab
    Twitter: / wplearninglab
    Google Plus: google.com/+Wplearninglab
    Pinterest: / wplearninglab

КОМЕНТАРІ • 137

  • @YourWeddingPhotographer
    @YourWeddingPhotographer Рік тому

    spent 3 hours looking for a decent explanation. Thank you.

  • @mattj5245
    @mattj5245 2 роки тому

    THANK YOU SO MUCH!!! I've spent so much time trying to get Javascript to work in WordPress. This is so simple! Liking and Subbing.

  • @modernizemysite
    @modernizemysite 4 роки тому

    This was so helpful. Thank you!

  • @marcuscosta6102
    @marcuscosta6102 4 роки тому

    Congratulations! I solved my problem with your tip! Thanks a lot!

  • @adamaltamirano2555
    @adamaltamirano2555 5 років тому +4

    Thank you for being awesome! and posting this.

  • @stylbandeira6529
    @stylbandeira6529 3 роки тому

    That was amazing. Thank you sooooo much!

  • @santiagozuluagagaviria1571
    @santiagozuluagagaviria1571 5 років тому +1

    This video is AMAZING! It worked! I tried so many things and this one was the magic one. Thank you a TON. Subbed for sure :)

    • @wplearninglab
      @wplearninglab  5 років тому

      I'm happy it worked! Thanks for the sub Santiago, I appreciate it :)

    • @utkarshtiwari2362
      @utkarshtiwari2362 Рік тому

      @@wplearninglab hello sir , what if i want to add this js code on the entire website

  • @toshwilcox5955
    @toshwilcox5955 5 років тому +1

    Great tutorial! Thanks!

    • @wplearninglab
      @wplearninglab  5 років тому

      You're welcome Tosh, thanks for watching!

  • @brady.essman
    @brady.essman 3 роки тому

    You are a great presenter!

  • @miharyrakotoniarivo6661
    @miharyrakotoniarivo6661 4 роки тому

    Thank you very much for the video. It works for me

  • @EasyTechs
    @EasyTechs 5 років тому +2

    Thanks so much for the detailed explanation, quick question: Can you add multiple scripts to the same header, e.g. AdSense and Google analytics? and how do you separate them to be sure they are well laid out for google?

    • @wplearninglab
      @wplearninglab  5 років тому +2

      You can add multiple scripts to the header. If you want to load them both as external files, the code below should work.
      function load_js_assets() {
      wp_enqueue_script('adsense-js', 'PATH TO ADSENSE JS FILE', array('jquery'), '', false);
      wp_enqueue_script('analytics-js', 'PATH TO ANALYTICS JS FILE', array('jquery'), '', false);
      }
      add_action('wp_enqueue_scripts', 'load_js_assets');
      I hope that helps :) Let me know if you have any further questions. Thanks for watching!

    • @EasyTechs
      @EasyTechs 5 років тому +1

      It sure helps, thanks!

    • @wplearninglab
      @wplearninglab  5 років тому

      You're welcome, let me know if you run into any issues.

  • @nunmulsilo
    @nunmulsilo 4 роки тому

    Great video! Was exactly what I was looking for :). How you add in a code snippet in a certain page php, to change it's original functionality that came with the Theme. Example: Original functionality of a "Job Listing" page that came with the Theme is a list view. I do have the code for changing the view into the user option to switch between list to grid view. Are you copying the code from it's original page theme and modifying it in the new ID page php created in order to override it? As I wouldn't want to mess any other pages. I'm assuming a Custom Template wouldn't work as the "Job Listing" page mentioned has the theme functionality integrated. I appreciate any advice you might have.

  • @brahimiahmedfarouk4224
    @brahimiahmedfarouk4224 3 роки тому

    conquering england at day n making useful tutos at night

  • @uimonk
    @uimonk 6 років тому +1

    good one i would be hapy if you explained rest two parameters of enque script function

  • @0847579646
    @0847579646 5 років тому

    thank you so much

  • @jamessummers5936
    @jamessummers5936 5 років тому +1

    Thanks for this, it works! I had change the false to true and had to find a code to add multiple page ids to one specific javascript, but the base code/method that you showed works.

    • @wplearninglab
      @wplearninglab  5 років тому +1

      Sorry for the delay in responding. Our third child arrived 12 days ago and it's been a bit of a gong show around here 👶
      I'm happy it worked for your James. Thanks for watching!

    • @bhanugill375
      @bhanugill375 5 років тому +1

      @@wplearninglab congratulations 👶

  • @Techdoct
    @Techdoct 4 роки тому

    Great Post

  • @ahmadluqmanhaqem4270
    @ahmadluqmanhaqem4270 2 роки тому

    Thank you very helpful. It working for WordPress version 5.8.1.

  • @isloo_boy
    @isloo_boy 3 роки тому +1

    Great effort, good work . Keep it up brother, as my kind of noobs need this type of tutorial to get pro version of my self. Once again thanks alot :)

    • @wplearninglab
      @wplearninglab  3 роки тому

      You’re welcome Muhammad, thanks for watching!

  • @kavirajmanampadi939
    @kavirajmanampadi939 3 роки тому

    Thank you.

  • @rocklinfineart5786
    @rocklinfineart5786 4 роки тому

    thanks so much!!!!!

  • @user-mo3cw6go7c
    @user-mo3cw6go7c 6 років тому +1

    תודה רבה סרטון מעולה

    • @wplearninglab
      @wplearninglab  6 років тому

      אתם מוזמנים, תודה על צפייה! (מ- Google Translate)

  • @NOALNOM
    @NOALNOM 3 роки тому

    Great Bjorn thanks 4 sharing!!! How do you remove the wp javascript type attributes via functions.php / code snippets? Thanks again!

  • @trickybats7339
    @trickybats7339 5 років тому +1

    awesome thanks!!

    • @wplearninglab
      @wplearninglab  5 років тому

      You're welcome, thanks for watching! Let me know if you have any questions :)

  • @youterisim6173
    @youterisim6173 2 роки тому +1

    Thank you so much

    • @wplearninglab
      @wplearninglab  2 роки тому

      You’re welcome, thanks for watching!

  • @dualipyah2221
    @dualipyah2221 2 роки тому +1

    thank you!

    • @wplearninglab
      @wplearninglab  2 роки тому

      You’re welcome Duali, thanks for watching!

  • @tonyprice228
    @tonyprice228 3 роки тому

    I have followed your tutorial and so far working great. I have three js files that need activating on a page. How do I add the extra js files in to the functions.php file so they work please?

  • @kamalkhan-nd7vl
    @kamalkhan-nd7vl 3 роки тому

    Thank u

  • @steamingHOTsomething
    @steamingHOTsomething 2 роки тому +1

    Thank you

    • @wplearninglab
      @wplearninglab  2 роки тому

      You’re welcome Danny, thanks for watching!

  • @shahipapon833
    @shahipapon833 3 роки тому +1

    Totally awesome 😍😍😍

  • @fagunshah8993
    @fagunshah8993 4 роки тому

    Can i do the same with snippets plugin? i want to embed script tag for everwebinar sticky bar on elementor papgr

  • @rockrecon
    @rockrecon 4 роки тому

    I want to add a .js snippet just before the closing head tag. How do I do that?

  • @selwynnz8417
    @selwynnz8417 3 роки тому +1

    Thank you! After 40 years of coding, I'm now finding my way around js as my WP ecommerce sales site needs some tweaking to get it to do what I need for more multiple upsell sales.

    • @wplearninglab
      @wplearninglab  3 роки тому

      Hey Selwyn,
      Doing it yourself is awesome, great work! WooCommerce lacks a lot of things that would be nice to have by default.
      You should check out my recent video on Checkout X: ua-cam.com/video/4KrDwKzjxkA/v-deo.html
      It’s awesome for upsells.
      There will soon be an update to the platform’s pricing to make it much more attractive.
      I hope that helps, let me know if you have any further questions. Thanks for watching!

  • @enochyoung1283
    @enochyoung1283 6 років тому

    Pls how can I see my PhP codes for using an elementor template so that I can add a code?

  • @mateusmazzei384
    @mateusmazzei384 3 роки тому +1

    Thanks!!!!!

    • @wplearninglab
      @wplearninglab  3 роки тому

      You're welcome Mateus, thanks for watching! Let me know if you have any questions :)

  • @spencerbce9231
    @spencerbce9231 3 роки тому

    New subscriber here!

  • @sidsoares73
    @sidsoares73 5 років тому

    Im trying to use m3u8 file/s in my website but doesnt load on the player can you help please.

  • @anjelicadixon7719
    @anjelicadixon7719 6 років тому +1

    I love You!

  • @elizabethbucher1252
    @elizabethbucher1252 5 років тому +1

    I bought a plug in that is jquery, I am not a coder but I want to use this plug in with elementor page buidler. It is a slide show plug in. How can I do this?

    • @wplearninglab
      @wplearninglab  5 років тому

      Good question Elizabeth. I haven't tried that yet, but you may be able to use the HTML widget in Elementor to include the jQuery and the HTML for the slider. Just put the jQuery below the html. And the CSS can go in the CSS field in the advanced tab. You'll need Elementor Pro for that.
      I hope that helps. Let me know how it goes!

  • @tonyprice228
    @tonyprice228 3 роки тому

    Hi there. I have been looking to do something like this for the past couple of days. Totally new to Wordpress and all that jazz. I see in this video you have a child theme created. I have looked through your video list and see quite a few videos on child themes. Which one would you recommend for a beginner getting in to building the child theme to lead on to doing the instructions in this video?

    • @selwynnz8417
      @selwynnz8417 3 роки тому +1

      Hi Tony, Child themes are 'subsets' of the original theme that you are recommended to create, so that if something breaks, you can always go beck to the original.

  • @SaintMTE
    @SaintMTE 5 років тому

    What background music is that please?

  • @thekingsofheart
    @thekingsofheart 4 роки тому +2

    I got my test to work, as in your tutorial. I can't make my custom functions work though even though they work perfectly on a static html site. Are there any nuances I should look out for?

    • @wplearninglab
      @wplearninglab  4 роки тому +1

      Hi Gabriel,
      There are a couple things:
      If your script is too high on the page, then it may be executing before the page is ready. Or it could be executing before dependent libraries like jQuery are loaded.
      You could also check the console to see if there are JS problems the browser is reporting. How you get there depends on the browser you're using.
      If you find the console, keep it open and refresh the page. Issues will appear in the console log.
      You can also insert console.log through your code to see if any of your JS is being executed. And if it is, you can see where it's getting stuck.
      I hope that helps, let me know if you have any further questions. Thanks for watching!

    • @thekingsofheart
      @thekingsofheart 4 роки тому

      @@wplearninglab I tried in the child theme folder and at the root level, but still no luck.
      I'll keep pokimg around and look to see if there are any errors in the console s you've suggested.
      Thank you!

    • @Gift1706
      @Gift1706 2 роки тому

      @@wplearninglab I also have the same problem as Gabriel, It seems the JS script is too high on the page and is executing before the page is ready. What is the solution to that?

  • @ankitsheoran1788
    @ankitsheoran1788 5 років тому +1

    how can we add a script at spcific location in a wordpress page.plzz reply

  • @TheSeeker2013
    @TheSeeker2013 4 роки тому +3

    You mentioned, for that the method you are using, inserts the JavaScript or jQuery script into the header of the page.
    I would suggest not to do that, because many themes are overburdened with scripts that are wanting to load first in the header and page speed really suffers as a result.
    (As of 2018, Page speed is now crucial for successful placement in Google search results. )
    Instead, use this function placed into the "functions.php" file of the Child theme (always best to have a child theme), where it inserts the JavaScript or jQuery script into the footer.

  • @pentasia4172
    @pentasia4172 4 роки тому

    hi there, great it's working on desktop, but not working on mobile version. kindly need your adivice, thanks

  • @rahimemelikebatu164
    @rahimemelikebatu164 4 роки тому

    Hi, for some reason this did not work for me! pleasee help. I put in my js file and did everything as you showed us but it didn't work :(

  • @richardcoopmans992
    @richardcoopmans992 4 роки тому

    How to load in an async.js file?

  • @byrdmang44
    @byrdmang44 3 роки тому

    Does it matter if my path has an HTTPS? I cannot get the alert to show up on the page and I know I am targeting the correct page - help!

  • @georgivasilev3867
    @georgivasilev3867 Рік тому

    May i ask something: can i use this method to put the GTM code in the header of all pages,but without using a child theme?
    And how to make the code to work in the header of every page?
    Thank you

  • @lavignesbloodstainjun20
    @lavignesbloodstainjun20 5 років тому +1

    Awesome ;)

    • @wplearninglab
      @wplearninglab  5 років тому

      Thanks and thanks for watching! Let me know if you have any questions!

    • @lavignesbloodstainjun20
      @lavignesbloodstainjun20 5 років тому +1

      @@wplearninglab Ok sir, we appreciate your help

    • @wplearninglab
      @wplearninglab  5 років тому

      No problem, that's what I'm here for :)

  • @rainersteiger1529
    @rainersteiger1529 2 роки тому

    Hi, thanks a lot for the video. Just a question: is it possible to add an 'async' ? Example:
    thx and bye, rainer

  • @matthewverdini274
    @matthewverdini274 2 роки тому

    Great video! However I tried doing this on my site and it doesn't seem to be running the script on the page. i have tried this countless times with different approaches but with no luck. the js works on the original html based page and offline but can't get it going through wordpress

  • @StudyGyaan
    @StudyGyaan 5 років тому

    //Script code for Copy to ClipBoard
    function copyDivToClipboard() {
    var range = document.getSelection().getRangeAt(0);
    range.selectNode(document.getElementById("a"));
    window.getSelection().addRange(range);
    document.execCommand("copy")
    }
    add_action( 'wp_enqueue_scripts', 'copyDivToClipboard' );
    It is showing me "syntax error, unexpected T_VAR"

    • @wplearninglab
      @wplearninglab  5 років тому

      It should also tell you on which line the T_VAR error is. Can you share the line?

  • @franbertpenaperalta9153
    @franbertpenaperalta9153 6 років тому

    I want to add html code to a specific post but I think the 'load_js_assets' action won't work with html code... what can I do?

    • @wplearninglab
      @wplearninglab  6 років тому

      Hi Franbert,
      I image you want to add the HTML code somewhere in the body of the page so your site visitors can see it. Off the top of my head you can use the code in this tutorial to include a jQuery script on a specific page. In the jQuery script you can choose specific classes or ID's as the target for the HTML code.
      Does that make sense? If so, do you think that is a possible solution to your specific problem?

  • @ronny-gunnarsson
    @ronny-gunnarsson 5 років тому +1

    This is exactly what I want to do. Run a javascript on one specific page. I did as instructed. To test I first only created one java file with the alert command you showed. The alert does not show up but I can see in the source that the java file is loaded. I am running Wordpress. Is there any other setting I should change to enable the execution of the java file? (The alert should show up here: science-network.tv/signs-test-mcnemars-test/ and the java file is currently pairwise_test.js)

    • @wplearninglab
      @wplearninglab  5 років тому

      Hi Ronny,
      I checked out that page using the Chrome Inspector and found that there is a Javascript error. Oftenm if there are any JS errors on a page, other JS on the page won't run. The error related to www.statcounter.com/counter/counter.js.
      I think if you clear up that error the alert should work.
      Let me know how it goes!

  • @svenskanyheter6683
    @svenskanyheter6683 5 років тому +1

    Hi your videos are awesome. Can i add data.json,bodymovin,index.html,new.js to wordpress

    • @wplearninglab
      @wplearninglab  5 років тому

      Hi Svenska,
      I don't know if that's a legitimate javascript file. You can add any legit JS file to WordPress.
      I hope that helps :) Let me know if you have any further questions. Thanks for watching!

    • @svenskanyheter6683
      @svenskanyheter6683 5 років тому

      How can we know it's a legitimate javascript file

  • @bikerflyer563
    @bikerflyer563 3 роки тому

    I followed this tutorial exactly and nothing but the javascript code shows above the header of the page.

  • @dimitrijejovanovic6779
    @dimitrijejovanovic6779 5 років тому

    in 'path to js file' why did u put ur site address? I did also and i get this error Failed to load resource: net::ERR_NAME_NOT_RESOLVED

  • @nabilaqmar4829
    @nabilaqmar4829 2 роки тому

    how do i call multiple .js?

  • @Mobicartweb
    @Mobicartweb 6 років тому

    How to make website. Load faster ????

    • @wplearninglab
      @wplearninglab  6 років тому

      Good question. The first thing you should do is go to gtmetrix.com and scan your site. That will hopefully tell you what's slowing down your site. Then fix the things it shows as slowing you down.
      I hope that helps and thanks for watching!

  • @brianhansen7425
    @brianhansen7425 2 роки тому

    Great video! :) Did this and now I can't access the website anymore XD

  • @rosalierazonable2629
    @rosalierazonable2629 3 роки тому

    can I add the js custom files to certain multiple pages let's say i want to add it on the page id 10, 29, 180 and such. I would appreciate if you respond. Thanks!

    • @wplearninglab
      @wplearninglab  3 роки тому +1

      Hi Rosalie,
      That's no problem. You can do it by adding an OR operator to the if statement.
      Here is how you would change the if statement in the code from the blog:
      if( is_page(10) || is_page(29) || is_page(180) ) {
      All the rest of the code will stay as you have it. The above will check to see if page ID 10 OR 29 OR 180 is loaded and it will then run the code.
      Here's a Stack Overflow page that I think will help make sense of this: stackoverflow.com/questions/2363840/how-to-use-or-condition-in-a-javascript-if-statement
      And here's a Javascript documentation page for different operators: www.w3schools.com/js/js_operators.asp
      I hope that helps :) Let me know if you have any further questions. Thanks for watching!

    • @rosalierazonable2629
      @rosalierazonable2629 3 роки тому +1

      @@wplearninglab Thank you for responding, haha why didn't I think of the or operator pft. But yes I will look at the other documentation as well. I'm new to js hihi. Thank you, again

    • @wplearninglab
      @wplearninglab  3 роки тому +1

      You're welcome Rosalie! Good luck with JS, it's a powerful tool to be able to use.

    • @rosalierazonable2629
      @rosalierazonable2629 3 роки тому

      ​@@wplearninglab Hi! Sorry for asking too many questions it's just there are a lot of questions I've been thinking about while I was working on it. First, what if my custom js file only contains a DOM manipulation that means I don't have to state the array('jQuery') dependency right? Second, should I replace the "array('jQuery')" with just ' ' for an empty string just like the version number that you left as an empty string before the boolean false or just directly copy everything except the jQuery part? Thank you, so much! Will definitely subscribe to your channel after this.

  • @TheDweeb002
    @TheDweeb002 5 років тому +9

    This video made me realize how dumb I am

    • @wplearninglab
      @wplearninglab  5 років тому +1

      Lol, or maybe how smart you are, now that you can do what the video shows :)

    • @wplearninglab
      @wplearninglab  3 роки тому

      Well said!

  • @mulletman1705
    @mulletman1705 4 роки тому +2

    Why didn't you just code the function directly on the required page instead of putting the code in functions.php ?

    • @wplearninglab
      @wplearninglab  4 роки тому +4

      You can do it either way, but having in the functions file is more flexible because you could easily add the same to function to another page or all pages or a subset of pages. If you add more scripts to your functions file, it's also nice have them all in one place.
      I hope that helps :) Let me know if you have any further questions. Thanks for watching!

  • @elpretentio
    @elpretentio 4 роки тому +1

    for some reason this is not working with Elementor. i followed all these steps and the alert box appears, but when i try to add some hover effects using Jquery it only shows up in the elementor preview window, not the actual site.
    $(document).ready(function() {
    $("p").mouseover(function() {
    $("body").css("background-color", "lightgreen");});
    $("p").mouseout(function() {
    $("body").css("background-color", "yellow");});
    });

    • @wplearninglab
      @wplearninglab  4 роки тому

      Can you try replacing all the $ with the word jQuery? Some WP sites don't parse the $ properly unless they are explicitly set to.
      Let me know how it goes!

    • @elpretentio
      @elpretentio 4 роки тому

      @@wplearninglab ok, i tried that, but it's still not recognizing that code. do I need a '.' after Jquery? this is the new code:
      Jquery(document).ready(function() {
      Jquery("p").mouseover(function() {
      Jquery("body").css("background-color", "lightgreen");});
      Jquery("p").mouseout(function() {
      Jquery("body").css("background-color", "yellow");});
      });

  • @DoomCatcher
    @DoomCatcher 6 років тому +1

    The page isnt loading with the code I would of used it

    • @wplearninglab
      @wplearninglab  6 років тому

      Hi Adam, my bad. The page was still set to draft :(
      It should work now. I hope that code helps you!

    • @iyakfishing2917
      @iyakfishing2917 6 років тому +1

      need to add: get_theme_file_uri('/js/my-js.js') that works:)

  • @lahannahlou
    @lahannahlou 5 років тому

    is there a way i can apply it to my whole site? - without breaking anything

    • @MattBoehm87
      @MattBoehm87 5 років тому

      just use the wp_enqueue_script() line without the conditional ( if ) statement. Hope that helps.

    • @rizalaziznugraha
      @rizalaziznugraha 5 років тому

      @@MattBoehm87 and how to apply just for entire wordpress post without pages? thank you

  • @bikerflyer563
    @bikerflyer563 3 роки тому

    if something has changed in wordpress and this no longer works can you please make a new tutorial or take this down?

  • @elfpi55-bigB0O85
    @elfpi55-bigB0O85 3 роки тому

    Didn't work for me. No javascript loads.

  • @nhacskybolero4961
    @nhacskybolero4961 3 роки тому

    Help get link code zingmp3 wordpress

  • @marshabrightly1307
    @marshabrightly1307 5 років тому

    the same way for jquery too?????

    • @wplearninglab
      @wplearninglab  5 років тому +1

      Hi Marsha,
      Yes, the same way for jQuery. jQuery is JavaScript. As long as the jQuery library is enqueued on your site, which it should be by default, then it'll work.
      I hope that helps and thanks for watching!

    • @marshabrightly1307
      @marshabrightly1307 5 років тому +1

      @@wplearninglab thanks alot

    • @wplearninglab
      @wplearninglab  5 років тому

      No problem :)

    • @marshabrightly1307
      @marshabrightly1307 5 років тому

      @@wplearninglab hiii.....im back again...do you have any ide how to make ""Your Download begin shortly"" in wordpress.....realy need your help right now....i got the js script but dont know how to use it...

  • @vioucocotte
    @vioucocotte 3 роки тому +2

    I did everything you said. the script doesn't even appear in the source code! -_-

    • @wplearninglab
      @wplearninglab  3 роки тому

      Hi Vianney,
      I would double check that you have the correct page/post IDs and that you’re on those pages/posts when checking the source code. Because it’s conditional, the code will only appear in the source on the pages it’s set to be on.
      I hope that helps, let me know if you have any further questions. Thanks for watching!

    • @vioucocotte
      @vioucocotte 3 роки тому

      @@wplearninglab it didn't work because I had nothing to call the javascript in my index.php. I added the then I used wp_register_script in the function.php and now it works fine. It's just weird that no videos talk about that in how to introduce js to wordpress. But thanks anyway.

  • @yashinnews
    @yashinnews 2 роки тому

    I think in 2022 it is not working

  • @adrianrainbow988
    @adrianrainbow988 5 років тому

    Sorry, I have redone my comment :) Thank you for your help, and I have got it all working well. But, i have an issue with wordpress removing my code after changing screens to the visual. I used your method in the video for the specific page, but any ideas how to stop making wordpress change my code when flicking to the visual? here is the JS i used instead of I am here alert: www.w3schools.com/howto/tryit.asp?filename=tryhow_js_copy_clipboard

  • @miguelalexandermacedozegar2462
    @miguelalexandermacedozegar2462 5 років тому

    hi Bjorn, thanks for the video...I coded this: code.sololearn.com/WTy88e9XfMHM/#html (is public) this code has html, css and javascript as you can see, but how can i do to include it in wordpress? just with this tutorial or what change should I do?. Thank you very much from Perú

  • @Youtick
    @Youtick 2 роки тому

    Too fast

    • @wplearninglab
      @wplearninglab  2 роки тому

      Thanks Youtik and thanks for watching!

  • @fwef7445
    @fwef7445 Рік тому

    so much sub, thumbs up begging, just down voted because of it

  • @davidweeks1997
    @davidweeks1997 4 роки тому

    Thank you.

  • @Makia_deux_fois
    @Makia_deux_fois 3 роки тому +1

    Can I add several functions in the functions.php files ?

    • @wplearninglab
      @wplearninglab  3 роки тому +1

      Yes, you can add as many as you want. If you add too many you will notice your site slow down because the functions file needs to be constantly accessed. But 'too many' is A LOT. Much more than most people would have in their functions file, but I just wanted to make you aware of it.

    • @Makia_deux_fois
      @Makia_deux_fois 3 роки тому

      @@wplearninglab Thank you for the video and for the answer. I have add 5 functions, hope is not gonna be too much 🤞🏾