Part 13 - WordPress Theme Development - How to Create a Custom CSS area

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 135

  • @Aba-ad
    @Aba-ad 6 หลายเดือนก่อน

    its been 8 years since you published this course and i am still sitting here watching every bit of it and learning and thanking you for all your efforts you are a Man!
    i hope you never see any bad days in your life.
    Stay Very Happy Alex God Bless you!
    Happy Coding!

  • @michaelwiginton8587
    @michaelwiginton8587 8 ปีที่แล้ว +15

    Amazing, amazing, absolutely amazing tutorials.
    It is rare to fine someone like you that is knowledgeable and that freely shares information AND that can explain it so fully.
    You are a truly a rare gem in a desert of rocks.

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว +1

      Oh wow, thank you so much for this amazing comment :D

  • @vickycampo
    @vickycampo 6 ปีที่แล้ว +2

    Hello Alessandro, I have recently discovered your tutorials and let me tell you they are absolutely the best I have ever seen. I admire your knowledge and your will to give them as free on TH-cam so anyone can access them. Thank you!

    • @alecaddd
      @alecaddd  6 ปีที่แล้ว

      Hi Vicky, thank you so much for this wonderful comment, I'm really glad my tutorials are helpful for you.
      Welcome to the channel and Happy Coding :D

  • @joukenienhuis6888
    @joukenienhuis6888 8 ปีที่แล้ว +2

    There should be a separate addicton department for Allesandro addicts. ;) Following your tutorials consumes all my free time and a lot of sleepless nights. I am learning a lot about Wordpress thanks to you. You exlain everything very clear, but the pause button is often used. Keep up the good work and I will keep on following you for developing my own variation of your theme.

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      +Jouke Nienhuis Ahahaha, that's amazing, thank you so much for this wonderful comment.
      I'm trying to improve the quality and pace of mu videos to make them easier to digest and a bit shorter.
      I'm really happy to hear that you're learning a lot, and I'm sorry for your sleepless nights, but honestly I love those, coding at 2am is when I'm more productive :D
      Looking forward to see your amazing custom theme.
      Happy Coding!

  • @towhidulislam1770
    @towhidulislam1770 7 ปีที่แล้ว +2

    Looks like I'm alecaddd tutorials addicted person :) Thanks man for doing good things. My prayers are always with you!

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      Welcome to the tunnel of tutorial addiction :D

    • @towhidulislam1770
      @towhidulislam1770 7 ปีที่แล้ว

      Thank you sir!

  • @vitalii7855
    @vitalii7855 7 ปีที่แล้ว +1

    I have watched the 13th video of this tutorial. It's really amazing things. I'm sure, that if I search it by my self, I could spend more than 5 hours for solving such kind on problems.
    Thank you Alex, you help me to study even better and faster. You are awesome !!! :)

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      Thank you so much for watching, I'm glad it was helpful for you :D

  • @niksafantela2169
    @niksafantela2169 9 ปีที่แล้ว +2

    Greetings from Croatia, love Your work, realy upgraded my WordPress knowledge with your great tutorial series :)

    • @alecaddd
      @alecaddd  9 ปีที่แล้ว +1

      +Nikša Fantela Hello, thank you so much for following! I'm really happy my tutorials are helpful also for a developer that needs some polish on WordPress, and not only beginners. Thank you again!

  • @macropsialberto
    @macropsialberto 7 ปีที่แล้ว +1

    Thanks a lot, you teach every theme so easy. Greatings from Bogotá-Colombia

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      You're very welcome, thanks for watching :D

  • @vitalijvirsulo570
    @vitalijvirsulo570 9 ปีที่แล้ว +1

    Best tutorial i ever watched! Alessandro thanks and keep going :) Can't wait for new episode.

  • @engr-mejba-ahmed
    @engr-mejba-ahmed 8 ปีที่แล้ว +2

    Amazing, amazing, absolutely amazing tutorials

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      Thank you so much!

  • @aladar-minigoonvendreener5660
    @aladar-minigoonvendreener5660 3 ปีที่แล้ว

    Thnx a lot, for such useful and clear tutorials, I really enjoy it

  • @nachiketkorgaonkar2609
    @nachiketkorgaonkar2609 9 ปีที่แล้ว +1

    Alessandro nice tutorial. waiting for new series.. Thank you

  • @nguyenhuynhson6735
    @nguyenhuynhson6735 3 ปีที่แล้ว

    Thanks Alex for your amazing tutorials. We would love if you can do more tutorials - typically with other PHP framework as PHP 8 has just released recently with a great improvment in performance. I'm pretty sure you may have much more supports & donation accordingly ^ ^

  • @gomuscu6016
    @gomuscu6016 6 ปีที่แล้ว +1

    Hi i did everything like you but i'm blocked at 25:58 because the thing were you write you css doesn't appear there only the /* Sunset custom css */ thing and the writing space have dissapeared

    • @alecaddd
      @alecaddd  6 ปีที่แล้ว

      Check my source code on GitHub if you have any issue.

    • @RubyLowry
      @RubyLowry 4 ปีที่แล้ว

      @@alecaddd I checked your source code but still couldn't fix this issue :(

  • @saadhabib6517
    @saadhabib6517 5 ปีที่แล้ว +1

    Really awesome
    But,
    I think in this tutorial one thing is missing.
    You cannot explain how to implement CSS that is written in the Custom CSS area with our theme that we are developing?
    I am Creating Theme option > Custom CSS page and develop this Custom CSS area on a theme that already has its home page. When I am writing some CSS for the home page elements it is not implemented on the block.
    Please tell me how to do it?

  • @SADDAMHOSSAINsaddamcrr7
    @SADDAMHOSSAINsaddamcrr7 9 ปีที่แล้ว +2

    How many episode you want to create to complete full project ? BTW, great tutorial i have ever watched about WordPress. Keep going and try to finish all episode as soon as possible. I can't keep calm. Love it!

    • @alecaddd
      @alecaddd  9 ปีที่แล้ว +1

      +Hossain Saddam Don't really know the right amount, I think the entire series could be around 30 episodes, but I'm not sure. Thank you for following!

  • @raymondpcowie101
    @raymondpcowie101 8 ปีที่แล้ว +2

    @Alessandro Castellani loving the tutorials. I have everything working fine in the Custom CSS page, except at the final hurdle, when I add text to the coder and save, the code disappears. I've searched hi and lo for a missing . or ' but cannot find anything. Any idea what might be causing this, please? Note: I have used a different ace theme , but tried it with monokai and still didn't work!

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว +1

      Hi, thank you so much for following.
      The first thing I suggest you to do is to download my source code from GitHub and compare ti with yours.
      Cheers

    • @raymondpcowie101
      @raymondpcowie101 8 ปีที่แล้ว

      Did that Chief. Not to worry, ripped it out and starting this tutorial again. Perseverance is king! Thanks...

    • @raulterraferrao696
      @raulterraferrao696 8 ปีที่แล้ว

      I had the same trouble as you but i did what +Mike Buendia commented and it worked

    • @vickycampo
      @vickycampo 6 ปีที่แล้ว

      Hello, I have the same Issue. Downloaded the files and everything seems to be good. I even get the Settings saved message. But it is not saving. I look into the database and the option name existes and the value is blank.

  • @Ben87918
    @Ben87918 6 ปีที่แล้ว +3

    I realize this video is pre 4.7, but now that you can add additional css in appearance>customize>additional css, is it necessary to include this feature in a theme? Regardless, I’m learning a ton from each of these tutorials. I can’t wait to start the plugin tutorial you’re producing now.

    • @alecaddd
      @alecaddd  6 ปีที่แล้ว +2

      Yes, you're right. Since that feature is available out of the box, this part is no 100% necessary, but still, there are some things I'm explaining here that could be interesting, like how to enqueue specific assets only in some specific admin pages, and how to use a neat JS library.
      Your call, anyway. Thanks for watching, and Happy Coding :D

  • @emiliorodrigoparra1387
    @emiliorodrigoparra1387 9 ปีที่แล้ว +1

    Thx for this amazing series!! Everything is really well explained, much appreciated :)
    A small question: you will show in the future how to include this css code you use in the custom css panel into the site? At the moment it just prints on the textarea.

    • @alecaddd
      @alecaddd  9 ปีที่แล้ว +1

      +Emilio Rodrigo Parra Sure, absolutely. That's the point of the entire series, building a fully functional premium theme. I just started building the front-end, and we will implement all the data we saved in our admin panel.
      Thanks for watching!

  • @pierodauber4452
    @pierodauber4452 7 ปีที่แล้ว +1

    hi. i find that your tutorials are really usefull. thanks for all your effort. just an update since i find some problems in the sanitize function. instead of esc_textarea i found out it's best to use sanitize_textarea_field. i hope it may help beginner like me.

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      Thanks for sharing 👍

  • @gilkatchko6482
    @gilkatchko6482 8 ปีที่แล้ว +1

    This is great! Thank you again

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      You're very welcome :D

  • @isabelphillips451
    @isabelphillips451 6 ปีที่แล้ว

    Thanks so much Alex for the tutorial, I have checked it out and I can see how to implement this in the plugin I'm developing using your wp plugin creation course/guide. I have a question is it possible to have the code by users stored in a file as well? What I mean is when a user adds their own code (either css or php) a file should be generated in the uploads folder to store the code not only into the database ... Is it something possible? Thanks once again for the great works

  • @urnanabhabestcobweb1501
    @urnanabhabestcobweb1501 8 ปีที่แล้ว

    Alessandro,
    first, let me thank you for the tutorial you provided. All of them are equally well, and enriched. It's been a great series so far.
    Now, the point is, I am having some problem in this part of the tutorial with the $hook function you used. first of all, the values it is showing is suppressed beneath the admin bar and I can't see it and copy it ( although I see a part of it). So, I can't get the exact value it is passing on, which makes no style or script attachment through 'enqueue.php' file.
    secondly, what role exactly the hook function is playing? I got a slug name of the page, so is it possible to declare any variable and storing the slug name into it and use it into if-elseif statements? Please explain in details the use of $hook parameter within the function.
    Last point, use of Ace page-builder. please tell us which specific (or as a whole) folder to use for sure.
    thanks in advance..

  • @BHFJohnny
    @BHFJohnny 6 ปีที่แล้ว +2

    Okay, I just spent one hour figuring out, why Ace is not showing and why am I getting an error "ace.edit can't find div #customCss".
    Finally I realized I've accidentally skipped the version argument in script enqueing. So scripts were added to the top so #customCss wasn't there yet when script fired.
    There is so much source code. I always overlook something in it. This is very different then me writing my own CMS.

  • @VasilisKar
    @VasilisKar 8 ปีที่แล้ว +1

    Thank you Aless..

  • @waqarulhassan4731
    @waqarulhassan4731 8 ปีที่แล้ว +1

    awesome tutorial
    can we add auto fill in this ??

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      Yup, the ace editor comes with autocomplete options. Check the official documentation to extend the functionalities.

  • @markgrover8184
    @markgrover8184 9 ปีที่แล้ว +2

    Did you know you can add to the 'snipit' file for ACE?
    That will allow for an EMMIT Style tab completion. Pretty Sweet man!

    • @alecaddd
      @alecaddd  9 ปีที่แล้ว +1

      +Mark Grover Yup, ACE is full of surprises and a great tool. Thanks for the heads up!

    • @thenahidul
      @thenahidul 7 ปีที่แล้ว

      Mark Grover can you please help me adding emmet? I tried lots of method by searching on Google but every time I failed. It shows some errors in the console. My ace css editor is working normally but I just want to add the emmet here.

  • @khillofication
    @khillofication 6 ปีที่แล้ว +1

    Thanks a lot Alessandro Castellani

    • @alecaddd
      @alecaddd  6 ปีที่แล้ว +1

      You're very welcome :D

    • @khillofication
      @khillofication 6 ปีที่แล้ว

      Alessandro Castellani :)

  • @DanChester1605
    @DanChester1605 8 ปีที่แล้ว +1

    Hello Alessandro, where can i find a very good Plugin Tutorial for a slider plugin, i need a Slider for my client, with custom fields and so on?

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      you could create a custom one with Advanced Custom Fields. Otherwise there are plenty of Slider plugins in the WordPress repository. not sure which one is the best, tho

  • @JayToTheRRR
    @JayToTheRRR 9 ปีที่แล้ว +1

    +Alessandro Castellani Great Tutorial again. But I have one problem, maybe you can help me.
    If I type something inside the ace editor and click the save button, nothing gets stored in the hidden textarea - but if I use the chrome developer tools and edit the textarea, then click the save button, the editor will show what I typed in the textarea manually. So for me, the connection form editor -> textarea is not working, but from textarea -> editor it is. Do you have any idea where I could have made a mistake? I compared your code from github step by step with what I got and cant find any differences except "sunset" is not called "sunset" for me :)

    • @alecaddd
      @alecaddd  9 ปีที่แล้ว

      +JayToTheRRR Hi, thanks for following.
      So, for what you wrote it looks like your problem is related to the javascript file, and mostly by the fact that, after you click SAVE, the javascript code can't update the texture before submitting the form.
      Can you check in the inspector if your JS file is properly enqueued? Is your browser blocking javascript in some way? Check if you have some error in your console.
      Happy Coding!

    • @JayToTheRRR
      @JayToTheRRR 9 ปีที่แล้ว

      +Alessandro Castellani
      if you got some minutes ;-) gist.github.com/chumiiger/72ec5c255ab4257f241f
      i triple checked everything, but maybe i am just code-blind atm :(
      edit: yep, indeed I was blind -_- I had

    • @ionutgionea6935
      @ionutgionea6935 9 ปีที่แล้ว

      +JayToTheRRR
      var updateCSS = function updateCSS(){
      //code here
      }
      That worked for me. Naming the Function

    • @onetube5024
      @onetube5024 8 ปีที่แล้ว

      +JayToTheRRR
      Make sure you save files In the code editor
      especially the (sunset-custom-css.php) file
      after writing all codes
      :)

  • @AhmadTheDev
    @AhmadTheDev 7 ปีที่แล้ว

    Hi Alessandro can you please help me to fix this
    "Uncaught ReferenceError: define is not defined
    at ace.js?ver=4.7.7:37"
    also
    "Uncaught ReferenceError: ace is not defined
    at sunset.custom_css.js?ver=1.0.0:4"
    where line 4 is "var editor = ace.edit('customCss');"

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      Check my source code in Github to see if you have any typos

    • @BHFJohnny
      @BHFJohnny 6 ปีที่แล้ว

      I've had the same error. It's a different package. Just download as ZIP, take the src-min folder to your project and rename to ace. github.com/ajaxorg/ace-builds

  • @francinaldopontes5722
    @francinaldopontes5722 8 ปีที่แล้ว

    Good Trade !, I'm not able to add the ace editor . Not be working for me . Already revises the class twice and not sure God . As I can not activate it on my theme ?

  • @mahmoudkhdre
    @mahmoudkhdre 7 ปีที่แล้ว +1

    :) i was think errors in js or ace but i found me put a plus space in register_settings when i remove it code work right

  • @ManikMia-qv8oy
    @ManikMia-qv8oy 7 ปีที่แล้ว +1

    awesome

  • @TheArinda1996
    @TheArinda1996 7 ปีที่แล้ว +1

    hello. please help. i cant find what i did wrong. i get the ERROR: options page not found.. and im checking everything you did and it should be right. got any tips what could be wrong?
    BTW. i love this tutorial. you are awesome!

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      Check my source code on Github to see if you have any typo.
      Cheers

    • @TheArinda1996
      @TheArinda1996 7 ปีที่แล้ว

      it is just that cant find it. i tried to copypaste and change the id's and stuff. sunset-custom-css.php, sunset.custom_css.js, enqueue.php should be right.
      and i checked function-admin.php too. but im stuck hehe cant find it.
      anyway i can search after it?
      but typo is the only reason you think it could be ? :) thx for the help!

  • @mahmoudkhdre
    @mahmoudkhdre 7 ปีที่แล้ว

    hi ,alex can you help me in my problem i take your font icon except your logo and i put my logo and upload it to iconmoon and edate
    ?class then download it and put css in scss file, but it show for me empty rectangle not icon, can you help me to solve it

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      If you edited my files, I don't know how I can help you. Try to follow exactly my workflow and be precise. If something breaks during the process it means you're doing something wrong.

  • @faysalahamed794
    @faysalahamed794 8 ปีที่แล้ว +1

    Hi Alex, You are doing great. (I am sorry if I wrongly shorten your name as Alex from Alessandro )
    Everything looks fine but you didn't mention how the styles from this custom CSS will affect the front end. I think you told about it in any next part.

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      Alex is the perfect short version of my name :D
      The CSS can affect the front-end depending of what type of code you write.
      By default, because it's pasted in line, it will have an higher priority over the rest, and can override everything, giving full power to the user.
      Cheers

    • @faysalahamed794
      @faysalahamed794 8 ปีที่แล้ว

      Actually, I wanted to know that where did you echo the styles in the front end. if I don't echo the written CSS in the front end, it will not work. I just did in the header.php and now I got what I was looking for. Am I doing it correctly?

    • @pawekalisz3545
      @pawekalisz3545 8 ปีที่แล้ว +1

      I sugest you using wp_head hook and properly write down your style header code with concatenation etc

  • @hasanmobarak7644
    @hasanmobarak7644 8 ปีที่แล้ว +1

    Hi, I faced a problem with ace editor. This doesn't work for me. I can't active this in my theme.

    • @bilalbilalbilal7
      @bilalbilalbilal7 8 ปีที่แล้ว

      please check the code. There must be some syntax error.
      Its working fine.

    • @jellycoding
      @jellycoding 8 ปีที่แล้ว

      I looked at it from start again and checked that I wrote the code right. Then I copied all code-rows he wrote (to be extra sure) from the git-hub repo. The only result I get is the same as in all my tries is the comment we made in the if statement:
      /* Sunset Theme Custom CSS */
      I can see that the css is working since the button Save Changes goes down (height: 400px).
      Can it be something wrong I do when I copy the downloaded ace folder into my js folder? I just take the folder from the zip and add it to the js folder.

    • @bilalbilalbilal7
      @bilalbilalbilal7 8 ปีที่แล้ว

      make sure you use enqueue function the file name must be same.

    • @Iconicmentality
      @Iconicmentality 7 ปีที่แล้ว +1

      Did you ever figure this out? I am having the exact same issue and I've rewritten this part of the code 3 times. Something with Ace isn't working for me.

    • @newbielearnmechkey7149
      @newbielearnmechkey7149 7 ปีที่แล้ว +1

      u fixed it? if not tell me ur problem, i had the same problem like you but i firgure out how to solve it. Sr abt my english :'(

  • @yousoufos
    @yousoufos 7 ปีที่แล้ว +1

    Amazing tutorial again, but one question, why i have error when i push submit button, wordpress tell me that options.php not found.
    Edit: found my error nvm

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      I'm glad you solved it, what was the error? Maybe could be useful for another user in your same situation.
      Happy Coding!

  • @kashifsharif8080
    @kashifsharif8080 6 ปีที่แล้ว

    Good Trade !, I'm not able to add the ace editor . Not be working for me . Already revises the class twice and not sure God . As I can not activate it on my theme ?
    REPLY

    • @alecaddd
      @alecaddd  6 ปีที่แล้ว

      REPLYING....
      Check my source code on Github and compare it with yours to see if you have any typo.
      REPLIED!

  • @piotao
    @piotao 7 ปีที่แล้ว

    ghosh, this time I've spend FEW hours of struggling, looking for a mistake typo in the code. I've just accidentally wrote textarea="sunset_css" and everything worked, just was not saved into the database. No errors, nothing! This is very frustrating.
    Programming in such an environment resembles me to ride on a rollercoaster without any safety belts.

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว +1

      If you have issues, always check my source code on Github, it's easier to spot mistakes or typos.
      But yeah, I kinda agree with you, programming is definitely like riding a rollercoaster without any safety belts :D

  • @robertdillon7942
    @robertdillon7942 7 ปีที่แล้ว

    Hey, the tutorials have been great. For some reason, I keep getting notices in the console on "define" not being defined and ace.js not being found. I think the version has changed, which I've tried to accommodate but it still isn't working

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      +Robert Dillon did you check my source code on GitHub to see if you have any typos or mistakes?
      Let me know, Happy Coding

    • @robertdillon7942
      @robertdillon7942 7 ปีที่แล้ว

      Yes, I believe so, but with the newest version of Ace I thought the lines would need a little adjusting. Is it possible I am downloading the wrong thing? I downloaded the zip file from the following github page: github.com/ajaxorg/ace The version is now 1.2.6 if I am not mistaken, and the file path appears to be a little different than what you have on github, right now. I would think the file path for us should be js/ace/lib/ace/ace.js. Until my github account is established, I have the following in enqueue.php:
      wp_enqueue_style('ace', get_template_directory_uri() . '/css/sunset.ace.css', array(), '1.0.0', 'all');
      wp_enqueue_script('ace', get_template_directory_uri() . '/js/ace/lib/ace/ace.js', array('jquery'), '1.2.6', true);
      wp_enqueue_script('sunset-custom-css-script', get_template_directory_uri() . '/js/sunset.custom_css.js', array('jquery'), '1.0.0', true);
      When I use these lines, the files are found but, again, "define" is not registered as being defined

    • @robertdillon7942
      @robertdillon7942 7 ปีที่แล้ว

      For the time being, I've decided to download the old ace.js from your github page. It is working when I do that. Either way, keep up the good work, Alessandro. I've learned a whole lot from your stuff.

    • @briand284
      @briand284 7 ปีที่แล้ว

      Hi Robert! I'm running into a similar issue using ACE 1.2.6. I had the
      "define" is undefined issue as well as the "ace" is undefined issue.
      You CAN fix the "define" is undefined issue by using one of the pre-made ace builds found here: github . com/ajaxorg/ace-builds
      That
      should fix the first issue, but i haven't figured out how to resolve
      the "ace" is undefined issue yet. Alessandro, perhaps you have some
      input on what we can do to use the up to date version? I'll be plugging
      away at this for the next few hours, so if I figure it out I'll let you
      know!

  • @nguyenhuutien914
    @nguyenhuutien914 6 ปีที่แล้ว

    i think we use: editor.session.setMode("ace/mode/css"); ?

  • @ojipitcha7256
    @ojipitcha7256 7 ปีที่แล้ว

    Hey Alex, the editor doesn't work on Chrome, do you know anything about it? Thank you.

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      It should work on Chrome without problems. Did you check my source code on Github?
      Did you also check a demo of ace to see if it works on their website?

    • @ojipitcha7256
      @ojipitcha7256 7 ปีที่แล้ว

      I already copied your 'ace' folder into my directory, the other demos work just fine. I don't know what's the problem with chrome, it loaded the editor once, and never again. On Microsoft Edge works fine.

    • @ojipitcha7256
      @ojipitcha7256 7 ปีที่แล้ว

      The editor works fine though when I use your theme on Chrome, I checked my code several times i can't find the problem.

  • @africamia4ever
    @africamia4ever 8 ปีที่แล้ว +1

    Wow! cool! Support Allesandro, he is a amazing tutor!!

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      +africa mia Ahahah, thank you so much, your passion is really refreshing and contagious :D

  • @TheOriginalMigz
    @TheOriginalMigz 7 ปีที่แล้ว

    Hey man, I know this is an old video of yours but I'm busy going through your tutorials...
    I just can't get this ace to work at all..
    looks like 1.2.9 has changed everything because the error i get is :
    "ReferenceError: define is not defined
    ace.js:37:1"
    then my custom_css.js file creates the same error too...
    file structure changed as well but managed to sort that out..

    • @TheOriginalMigz
      @TheOriginalMigz 7 ปีที่แล้ว +2

      I didn't want to bug you about this, it's just i've spent 2 days now rewriting this lesson over and over again and end with same result.. your code and mine are the same except where the js files are called because the structure changed..

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว +1

      Hi, sorry for your issue. Did you try to download my source code from Github? Maybe try using the same version of ace I'm using.
      Cheers

    • @TheOriginalMigz
      @TheOriginalMigz 7 ปีที่แล้ว +1

      I am now using your version of ace, redid the lines that pointed to the older version and it fixed everything..
      Wonder why it wouldn't let me use the newer one ?!?
      Anyways, thank you for responding sir!
      You are a very patient teacher and I thank you for all the trouble of making these tutorials!

    • @Luiiiiiiiiis
      @Luiiiiiiiiis 5 ปีที่แล้ว +1

      @@TheOriginalMigz I had the same problem. But I was also writing $(document).ready instead of jQuery(document).ready… Ooops

  • @dinhhoanglong942
    @dinhhoanglong942 7 ปีที่แล้ว

    hi, I want to build wp theme and upload to themeforest to sell, with follow this series, can I do it?

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      You can learn a lot from this series, the rest is up to you and your ability to create a modern and solid theme.
      Happy Coding!

  • @morhaham6609
    @morhaham6609 4 ปีที่แล้ว +1

    Still relevant for 2020 when we can customize CSS in the Customizer panel?

  • @jedidiha
    @jedidiha 8 ปีที่แล้ว +1

    adding visibility: hidden is kinda overkill hehe

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว +1

      You're never too sure :P

  • @jaymodi8595
    @jaymodi8595 6 ปีที่แล้ว

    ace file cant wokr it can you send me your ace file link

    • @alecaddd
      @alecaddd  6 ปีที่แล้ว

      Check my source code on GitHub, is all there

    • @jaymodi8595
      @jaymodi8595 6 ปีที่แล้ว

      @@alecaddd i check but ace/mode/css cant effect it

  • @paulmiller8128
    @paulmiller8128 6 ปีที่แล้ว

    This is soooooo annoying
    I'm admitting defeat -I've spent two hours on this and I just can't figure out how to download these js files, I know where they are on Git Hub but can't get them downloaded.
    Thanks

    • @paulmiller8128
      @paulmiller8128 6 ปีที่แล้ว

      Even more annoying - I've just figured it out: download the entire theme from alecaddd.com and copy the files you need.

    • @alecaddd
      @alecaddd  6 ปีที่แล้ว

      What? Why did you download my blog theme? XD
      Couldn't you download the GitHub repo? There's a green button on the top right that says "Download"

    • @paulmiller8128
      @paulmiller8128 6 ปีที่แล้ว

      Hi Alessandro, the green button seems to be top level only - it downloads everything not just one file or folder.
      Thanks for the tutorials by the way, they are so helpful.

    • @BHFJohnny
      @BHFJohnny 6 ปีที่แล้ว

      Download this, take src-min folder and rename to ace
      github.com/ajaxorg/ace-builds

  • @isabelphillips451
    @isabelphillips451 5 ปีที่แล้ว

    Amazingly amazing tutorial, i'm so smiling now as i pulled this off. I was even able to make the process faster by using this library: github.com/ryanburnette/textarea-as-ace-editor
    then
    $('#TextareaID').asAceEditor();
    var editor = $('#TextareaID').data('ace-editor');
    editor.setTheme("ace/theme/monokai");
    editor.session.setMode("ace/mode/css");
    Thanks so much Alex, you're the best