Wordpress Code Snippets Tutorial | Add Custom PHP and CSS To Your Website

Поділитися
Вставка
  • Опубліковано 25 гру 2024
  • Code Snippets is an amazing plugin that will enable you to run PHP and CSS snippets on your website. With code snippets you don’t need to add custom snippets to your theme’s function.php anymore.
    A snippet is a small chunk of PHP code that you can use to extend the functionality of a WordPress-powered website; essentially a mini-plugin with less load on your site.
    Most snippet-hosting sites tell you to add snippet code to your active theme’s functions.php file, which can get rather long and messy after a while.
    Code Snippets changes that by providing a GUI interface for adding snippets and actually running them on your site just as if they were in your theme’s functions.php file.
    Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets. Snippets can can be activated and deactivated, just like plugins. The snippet editor includes fields for a name, a visual editor-enabled description, tags to allow you to categorize snippets, and a full-featured code editor. Snippets can be exported for transfer to another side, either in JSON for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme.

КОМЕНТАРІ • 93

  • @PedroMartinez-nl1gr
    @PedroMartinez-nl1gr 3 роки тому +2

    Ferdy is nearly impossible not to follow your channel and YES watch all those silly commercials for you to earn a few bucks - you deserve it! Thank you so much, you have no idea how many times you've saved my SANITY! I know this is an old video but I just had to comment on it.
    Pedro

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

    Code Snippets Plugin became Pro as you predicted, because it will not let me add CSS in free version. Good thing is, I found a replacement for that named: ""Custom CSS and JS". Anyhow, the video was awesome because it pretty much gave me the idea on how to achieve custom CSS on my website. Thanks man, you're a life saver.

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

    I love you, Ferdy. Your accent is da bomb! And your videos are among the most helpful I've watched on the topic of web design.

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

    TOP, needed this

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

    Excellent and short, which makes it even better. Thanks!! 👍

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

    Thanx Ferdy! Snippets are a game changer!

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

    Thanks Ferdy, I know nothing about coding. I'll be glad if you walk me through this regularly

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

      Hey Lami! I will learn code and teach it on this channel!

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

      @@ferdycom I can't wait, go for it my friendly instructor 🤩

  • @RealEstateRadioTV-SA
    @RealEstateRadioTV-SA Місяць тому

    Thank you, you went straight to the point. Regards South Africa

  • @TR-pb3qp
    @TR-pb3qp 4 роки тому +4

    Easy and strightforward. Love your style!

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

    Thqnks buddy, awesome video. As always.

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

    Ferdy absolutely Great... 👏✨✨that default sorting removal was what I needed

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

    You are a legend. Thanks so much. Works 100%

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

    Wow nice valuable information 😁

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

    Has this plugin changed owner or it's name? I cant find it...

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

    This video explains the concepts more clear and able to insight easily... Please upload more related videos :)

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

    Thank you so much brother 👍

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

    Congratulations!!! Awesome tips!

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

    Hey Ferdy - whats the difference between using Code Snippets and using Additional CSS in Elementor?

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

    Thanks for this video. I am using a child theme. So far, for many reasons and on different occasions, codes have been inserted into the theme using plugins like Custom CSS, Additional CSS, and also in the Style css, functions.php .... If I want to edit anything, i do not know where i have made the changes. In this plugin title and description will make it easy locate and edit it if the need arises later. I intend to bring all those codes that are in different locations to this Code Snippets. Will it affect the site in anyway?. Thanks

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

      i want to know the answer too, I hope he will reply

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

    Thank you Ferdy, you are awesome.

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

    FerdyYou are a great teacher

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

    Thanks Ferdy, just what i was looking for

  • @YT-XD
    @YT-XD 2 роки тому

    Really useful thanks for sharing

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

    Beautifully done. Very simple explanation.

  • @bobbytk-q8f
    @bobbytk-q8f 5 місяців тому

    Will the plugin follow the theme? If the theme is changed the custom css will apply to the new theme correct?

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

    Dude you re the best

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

    Realy great. I was looking for that features including script. it was very helpful thank you very much.

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

    Great video. Many thanks. If I manage to tidy up the functions.php and style.css files of my existing Child Theme, am I still stuck with it because of necessary customization made to various WooCommerce files?

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

    thanks dear for your job

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

    A great tutorial. It was really helpful to solve my problem. Thanks!!

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

    Great video. Used the plugin to change the post date status from published to last updated.Thanks. Btwn which camera are you using?

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

    This video is great, concice and well explained, I certainly learned something new from it...thanks a lot....👍

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

    Hi Ferdy (hallo!),
    This looks like what I need.
    I want to add an extra field for product categories called "category description bottom". This is extra (wysiwyg) text below the products of the category. So you basically have "category description (top)" and "category description bottom".
    Have you got a tutorial on this or do you know where to find a tutorial?

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

    thank you Fredy... you are awesome

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

    Great Ferdy thanks 4 sharing!!! How do you remove the wp javascript type attributes via code snippets? Thanks again!

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

    thanks Fredy :) do you have more snippets php like this for woocommerce ? otherwise how can i find theme plz ? ❤️

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

    Hy Ferdy. great video. Can You name the video editing software You use and also the name of the effect at 2:47 where You zoom in the screen and slight rotate to left. Thnx in advance and keep up the good job You make:-)

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

      Hi Ivan, I use After Effects for that :).

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

      @@ferdycom thank You very much for your answer :-)

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

    Awesome I love to watch

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

    Great stuff pal

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

    I have learned a lot from you. Can I upload a PHP script and link it to a wordpress website?
    Can I upload a PHP script and link it to a WordPress website?

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

    Hey Ferdy, I have questions. If I want to add tag menager code, where do I put it?

  • @Anis-hi4ec
    @Anis-hi4ec 4 роки тому +1

    I did it before with custom css&js plugin but I need to apply on a specific URL.

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

    Thats awesome Ferdy...
    With this plugin a non developer can make technical changes in a website
    Out of curiousity can we add all html css javascript and php all in the plugins free version?

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

    Love you bro!💖

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

    Wordpress just ran an update which is now blocking custom html code and won't let the page update. I am just trying to embed some code for my affiliate markeing for amazon. Would snippets work for that?

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

    Is there any way without using plugins because using plugins for such a small small tweak it will effect load performance

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

    Amazing

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

    Beautiful ❤️😍

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

    Very cool! Thank you very much!

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

    i want to be a web developer which one i should learn plugin or coding,with plugin i see more instan and easy but with coding its more dificult when build something,and if i just use plugin can i make money from web developer?

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

    Would have loved how to use shortcodes inside html posts [shortcode]

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

    I learn again something interesting from that will help me for feature projects In Wordpress

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

    Would anyone know php code to embed youtube video into the featured image for woocommerce? Also thanks Ferdy, your videos are so well constructed and informative, really appreciate it.

  • @inovasiMG
    @inovasiMG 8 місяців тому

    Hello friends, how do you edit the code of pro files and free plugins or paid websites

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

    can i remove specific content from wp sites by removing php code? if it possible than how can i find that specific content code from theme editor ? thank you

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

    Thank you :)

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

    Thank you Fredy.
    I have subscription form on my divi website page. A have an subscribe.php file with a code that handle the data that summited to the server. In order that to work I need to upload the subscribe.php file to the server. Uploading files to the server is not easy for me and i am trying to avoid it.
    My question is, is there a way I can do it without uploading the php file to the server? maybe define php code snippet and call it somehow?

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

      I would use Bloom to get subscriptions from your website.

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

      @@ferdycomBloom doesn't work with Sendy mailing service. And in case you define custom html form and want to customize something about the submission handler you need to define .php handler and upload it to rhe server. I qm trying yo find a way to avoid the need to upload file to the server. Any idea?

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

    thanks for the info.

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

    Hi .. thanks for the video. I just purchased a child theme. Can i modify the child theme so any updates of the main theme in future wont affect my child theme? Aporeciate your reply

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

      it wont affect child theme if you update

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

    How to add a css code template to wordpress for coming soon page? how to locate the code to a one specific page?

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

    Thanks Furity!

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

    great info

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

    Thanks

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

    Thanks ferdy. Always I learned something new. And still you are cute always

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

    USEFUL

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

    Thanks bro

  • @Farah-Khamis-SSBS
    @Farah-Khamis-SSBS 4 роки тому

    Isn't it easier to use Appearance --> Customize --> Additional CSS
    ?
    It will do the same thing

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

      Not every theme has that option. This is far more organized.

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

    How to create pagination using in snippet

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

    Hi Ferdy.. why is code snippets better than using a child theme...I mean why is it a really better?

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

      Hi, i like the organisation in Code Snippets. You can turn everything on and of. But when you use a child theme you can keep using it. Code Snippets is more future proof.

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

      @@ferdycom thanks Ferdy..so you like the flexibility of enabling and disabling code in the site rather than it always running in a child theme....I agree :) I think I will stop using child themes and try it this way from now on. Great video!

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

    thank you

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

    tHANKS.

  • @p.m.8316
    @p.m.8316 3 роки тому

    thnx!

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

    Any one have idea about code runner plugin in WordPress

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

    not work with codepen

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

    Attention if you want to modify woocommerce's mails you must have a child theme I think ...

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

    I did not find it works

  • @BLOG4CARS
    @BLOG4CARS 28 днів тому

    YOU HAVE TO BUY ITS NOT FREE ANYMORE

    • @ferdycom
      @ferdycom  28 днів тому

      There is a free version 😊

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

    ha ha newspaper!

  • @09AKHLESH
    @09AKHLESH 3 роки тому

    Thanks bro