• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

virusword.com-Wordpress

Learn Wordpress

  • Home
  • WordPress Shop
    • Fotopress
    • SEO Tool Kit
    • Social Contact
    • Tag Machine 2
    • Video Profits
  • Latest News
  • WordPress
    • Plugins
    • Themes
    • Tutorials
    • Videos
    • Woocommerce
  • About Us
  • Contact Us
    • Terms of Service
    • Privacy Policy
  • Show Search
Hide Search
Home/Videos/Wordpress Code Snippets Tutorial | Add Custom PHP and CSS To Your Website

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



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.

source

Written by:
Abdul Wahid
Published on:
June 25, 2021

Categories: VideosTags: add css to wordpress, Add Custom CSS, Add Custom PHP, Child Themes, Code Snippets, Code Snippets Pro, create a child theme in wordpress, Custom CSS, Custom PHP, Ferdy Korpershoek, simple custom css, tutorial, wordpress, wordpress child theme, wordpress plugins

Reader Interactions

Comments

  1. Sincerely Stone

    June 25, 2021 at 10:26 pm

    Thanx Ferdy! Snippets are a game changer!

  2. ZANNA KRISTAL

    June 25, 2021 at 10:26 pm

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

  3. azadeh razavi

    June 25, 2021 at 10:26 pm

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

  4. SDE

    June 25, 2021 at 10:26 pm

    thnx!

  5. Akhlesh Rajput

    June 25, 2021 at 10:26 pm

    Thanks bro

  6. John G

    June 25, 2021 at 10:26 pm

    tHANKS.

  7. Cur Mikes

    June 25, 2021 at 10:26 pm

    Wow nice valuable information 😁

  8. Ashvin Ravi

    June 25, 2021 at 10:26 pm

    This video explains the concepts more clear and able to insight easily… Please upload more related videos 🙂

  9. MyGodTube

    June 25, 2021 at 10:26 pm

    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?

  10. MyGodTube

    June 25, 2021 at 10:26 pm

    Thqnks buddy, awesome video. As always.

  11. N Schone

    June 25, 2021 at 10:26 pm

    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?

  12. Abe Umer

    June 25, 2021 at 10:26 pm

    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?

  13. stockerman77

    June 25, 2021 at 10:26 pm

    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.

  14. Jan Caerels

    June 25, 2021 at 10:26 pm

    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?

  15. sanjeev shrestha

    June 25, 2021 at 10:26 pm

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

  16. Pedro Martinez

    June 25, 2021 at 10:26 pm

    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

  17. Pat Boran

    June 25, 2021 at 10:26 pm

    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?

  18. A. Ferit YALÇIN

    June 25, 2021 at 10:26 pm

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

  19. Bruce Wayne

    June 25, 2021 at 10:26 pm

    Thank you 🙂

  20. EL FOTÓGRAFO DE LA CASA

    June 25, 2021 at 10:26 pm

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

  21. Muddi El Qassem

    June 25, 2021 at 10:26 pm

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

  22. Jan Laurenčík

    June 25, 2021 at 10:26 pm

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

  23. Susan Carroll

    June 25, 2021 at 10:26 pm

    Beautifully done. Very simple explanation.

  24. Abdulla Shafi

    June 25, 2021 at 10:26 pm

    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

Primary Sidebar

Wordpress

  • Latest News (283)
  • Plugins (323)
  • Themes (330)
  • Tutorials (413)
  • Videos (841)
  • Woocommerce (420)

Recent Articles

Kera – Fashion Elementor WooCommerce Theme | Minimal Design Elementor eCommerce Theme

#kera #wptheme :::GET Theme::: …

Continue Reading about Kera – Fashion Elementor WooCommerce Theme | Minimal Design Elementor eCommerce Theme

Gov. Sanwo-Olu Set For Second Term, Wins 18 LGAs – 9News Nigeria

Governor Babajide Sanwo-Olu of Lagos State and …

Continue Reading about Gov. Sanwo-Olu Set For Second Term, Wins 18 LGAs – 9News Nigeria

Search our site

Explore more

Get our Wordpress Guide Get Plugins Get Connected

Footer

VirusWord by Promaps, Inc.

Barnes Place
Colombo 7, Western 00700

Copyright © 2023 · Promaps, Inc.

Keep In Touch

  • Email
  • Facebook
  • Instagram
  • Pinterest
  • Twitter