Тёмный

How to Add a Custom Function to Your WordPress Website - 2017 

JAKSON
Подписаться 25 тыс.
Просмотров 40 тыс.
50% 1

Sometimes you’ll want to add some functionality to your WordPress site by adding some custom php code - and likely the blog post or tutorial where you found this glorious snippet of code tells you to “paste the code into your functions.php file” inside your theme - don’t do it!! You see the functions.php file is part of your theme so if you ever update the theme you’ll lose the function and potential wreck your site.
☆☆ ☆ Download my FREE 2019 Theme "Cento" - jakson.co/cento - a WordPress Starter Theme for Elementor ☆☆ ☆
You can however use a WordPress plugin to add custom functions to your WordPress site, and in this tutorial I’ll show yu how super easy it is with the "My Custom Functions” plugin by Arthur Gareginyan.
My Custom Functions is on the WordPress Plugin Directory here: en-gb.wordpres...
And Arthur is here: www.arthurgare...
**** Download the EBook Guide to my Top 10 Plugins of All Time here: bit.ly/JaksonTop10 ****
Lets Make some WordPress!
Jakson
Go ahead and subscribe to the Jakson Channel if you fancy:
/ @wpjakson
And check us out over at:
jakson.co/

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 48   
@custardparty
@custardparty 5 лет назад
This is such a bad idea lol. People should be creating child themes and creating new functions.php file in that child theme. Basic WordPress stuff.
@nunmulsilo
@nunmulsilo 4 года назад
I agree with you Adam, a child theme is essential for any function php changes. My concern is changing a certain page php, not entire site functionality
@victorbejenaru7577
@victorbejenaru7577 6 лет назад
For the new version of My Custom Functions, the control page is found in Settings> PHP Inserter. You're welcome :)
@slainiae
@slainiae 7 лет назад
Dude, I used that plugin and it locked me out of my website completely. This may not be the best way to get your website working again but it worked for me: Make sure you've got access to your File Manager first and if you get locked out go into public_html --> wp-content --> plugins. You should see the My Custom Functions folder there. Simply right-click and delete. You should have access to your website again again.
@simonvdk1
@simonvdk1 6 лет назад
dude same with me my webshop is down
@simonvdk1
@simonvdk1 6 лет назад
You really saved my day!!!! thanks!!!!
@AscendingAI
@AscendingAI 5 лет назад
for bitnami users it's less simple but yeh thanks!!! community.bitnami.com/t/wordpress-bitnami-permissions-issue/48392/4
@samiwazni4737
@samiwazni4737 3 года назад
I used that plugin and It is crashed my website completely, but I got it back. Not save plugin if you do not know good in code. If you need help you can contact me.
@DavidRalph-b5y
@DavidRalph-b5y Год назад
Please note that this Plugin is not available any longer. WordPress reports: This plugin has been closed as of November 10, 2022 and is not available for download. Reason: Guideline Violation.
@JohnJames-yt1gh
@JohnJames-yt1gh 11 месяцев назад
Thanks for the info. Do you know if there is an alternative plugin available?
@bollywoodmag
@bollywoodmag 6 лет назад
Thank you sooo much, I've wasted more than 2 hours looking for this info correctly, it was very useful, Thanks again
@calvinbutler5517
@calvinbutler5517 3 года назад
Great video. I'm stealing your custom function to remove the wp version :). Thank you!
@wpjakson
@wpjakson 3 года назад
Please do Calvin! :)
@Dollceeee
@Dollceeee 6 лет назад
Hi I hope you can help! So, I have made my website on Ocean wp using elementor pro and adding woocommerce to the site as well. Now the place where I'm stuck is, whenever I got to edit my store page, it gives me an error like this : "Sorry, the content area was not found in your page. You must call the_content function in the current template, in order for Elementor to work on this page." On the Learn more page it is asking me to : Add the_content function into the page template's code. This is the line you need to add: My simple question is where can I add this? otherwise can I use this plugin (you speak about) and will it for sure solve this error? If someone can help I'll be truely grateful! :)
@anasaktaa2569
@anasaktaa2569 5 лет назад
You don't need to use custom php code to fix this problem, try to log out the dashboard and login again or delete the page and add a new one, this worked for me.
@GigiUK
@GigiUK 6 лет назад
Excellent video. I was only just messing around with my functions file tonight! Question: I liked how you hid the WP version from public view, but is there a way to hide the theme name from the Inspector? I get people ripping my ideas off after working for a client; hence, they find out the theme name and go buy it themselves. It's rather annoying. If I could hide that, I'll be laughing. Either that or can you create a video on how to buy a new theme and wipe the said info before using it so I can change the name to my own etc. Your videos are always very good, so thanks for your hard work, Jakson 👍
@ScottFichter
@ScottFichter 6 лет назад
Hmm..... I wonder if it makes sense to lock this folder hard with .htaccess so nobody can snoop the file? Also the developer changed the location from appearance to Settings > PHP Inserter. Just a friendly FYI.
@rw7799
@rw7799 3 года назад
what is the best way to add your own traditional php code . e.g. a search function or cron job from external feed.. is this frowned upon in wordrpess ? you seem to prefer to use pre written functions. cheers.
@jamess5542
@jamess5542 3 года назад
Hey there, great video! I'm using Yoast SEO with my WordPress site, but I find it's quite limited. For instance, I would like to add some more SameAs schema mark up. Is there any way I can use the technique you have shown to add more schema markup?
@billsugden
@billsugden 5 лет назад
Interesting Code Jackson Wish you would post it in the comments , I tried this app and it worked okay , Until I made a mistake in my code , then it crashes wp .. In school they teach us to make a child theme , Changing the CSS And PHP In a child team makes it much easier to repair ..
@denisulita4327
@denisulita4327 3 года назад
Hello sir! can u make a video of adding scroll function like fade animation on the next section of your page using the plugIn?
@MAZ440
@MAZ440 6 лет назад
Hi there:-) I have a website on wordpress and I would really need some help. Im looking after a requeste a quote plugin one that u can upload images to it also.. Do you know anything similar to that? Thanks in advance
@Himanshu-xm8cw
@Himanshu-xm8cw 7 лет назад
great video sir. just wanted to ask that can we add custom next and previous buttons in the site to link pages.
@wpjakson
@wpjakson 7 лет назад
Thanks for great feedback Gags Laugh! Not sure this is the best plugin tottery and get that functionality - try searching the WordPress Plugin Directory for “Pagination” and you you should get a ton of options. This is one of the more popular ones: wordpress.org/plugins/wp-pagenavi/
@bettinabaravran4948
@bettinabaravran4948 7 лет назад
Hi Jakson, first time in your channel. Liked it very much. Can you help me with ecommerce? Regards,
@darkmift
@darkmift 4 года назад
TAKE THIS VIDEO OFF THIS PLUGIN KICKS AND LOCKS THE SITE!!!
@ELBADIAA
@ELBADIAA 7 лет назад
Great Tutorial Just subscribed to your channel / website and encourage you folks to do so! Would you like to send txt file of this 3 functions and if any interesting other functions.
@mode7654
@mode7654 6 лет назад
i couldnt find the last Php function. can you provide it for us ( which is the one with the info box ). can you provide it for me ?
@rw7799
@rw7799 6 лет назад
lol got to love wordpress,,,i ve got a live site etc etc,,still just spent 20 minutes trying to get out of customise area to the home page... had to delete /customise in the url in end and worked it out.... now i can try and work through your video.
@intervarsity3569
@intervarsity3569 5 лет назад
insert functions to functions.php if its theme related and into your custom functions if its site related. so choose whats work for you.
@anonasocah
@anonasocah 5 лет назад
This will break your wordpress site
@muscleandhate
@muscleandhate 5 лет назад
I didn't get the new option 'custom functions' under appearance, the plugin is deffo uploaded and activated?
@BlackKettleRanch
@BlackKettleRanch 5 лет назад
No. Time wasted. It wants you to upgrade to Pro.
@kailaharnum
@kailaharnum 5 лет назад
Hi Jackson How do I find the codes that you are using
@projects4164
@projects4164 6 лет назад
Jakson, Hat off to you. Excellent pitch and video.
@danielhtwe
@danielhtwe 6 лет назад
Hi Jason, thanks for sharing. This is what i am looking for. Really appreciated.
@BbsKochMoraes
@BbsKochMoraes 7 лет назад
Hey, Jakson. I've accidentally copied a CSS line to the plugin and since then I can't access my website anymore.I've already opened the plugin files via cpanel's file manager, but I can't see my custom data in there. Would you know where to find it?
@wpjakson
@wpjakson 7 лет назад
Hi Carlos, thanks for watching! oh dear, not sure what you've don there, this plugin is pretty good at not allow you to enter incorrect code. I would suggest deleting the plugin completely, if that doesn't get your site back up you'll probably have to find the option record in the database and remove that - please please back sure you have a woking back up before doing anything with plugins, changing files or editing the database !!
@ScottFichter
@ScottFichter 6 лет назад
Carlos, can you FTP in and rename the plugin? That should deactivate it temporarily.
@p8triot394
@p8triot394 5 лет назад
Added this plugin buy it does not respond. Can not turn on or click on anything. Any ideas?
@wpjakson
@wpjakson 5 лет назад
Hi Aston, not sure I get you completely - can you explain more?
@arghyabasu9329
@arghyabasu9329 3 года назад
Great , just great !!
@waleedmuaz1452
@waleedmuaz1452 5 лет назад
great video sir. just wanted to ask that where we can get Pre-defined function for our site :)
@PhilipGeorgeOnline
@PhilipGeorgeOnline 7 лет назад
Has to be some of the best presented wordpress tutorials I have seen, well done JAKSON.
@prpann
@prpann 6 лет назад
Thank you so much for the help
@h3ll_production684
@h3ll_production684 6 лет назад
boring
@chicagowebsiteservice8482
@chicagowebsiteservice8482 5 лет назад
Great Video! Where can I copy the dashboard notification code?
Далее
The Best Plugin Ever for WordPress Admin
14:15
Просмотров 17 тыс.
БЕЛКА ЗВОНИТ ДРУГУ#cat
00:20
Просмотров 870 тыс.
Лайфак года 😂
00:12
Просмотров 103 тыс.
The Basics of Dynamic Content in 15 Minutes
18:16
Просмотров 182 тыс.
How to Add Custom JavaScript to Your WordPress Site
11:01
WordPress - Functions
6:05
Просмотров 4,6 тыс.
I Asked ChatGPT To Do A $5000 WordPress Job...
14:01
Просмотров 452 тыс.
Wordpress Hooks (Actions & Filters) Explained
22:43
Просмотров 6 тыс.
Simple WordPress Plugin Development - Start to Finish
2:29:29