Part 5 - WordPress Theme Development - Custom Social Media Fields and Sanitize Callbacks

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

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

  • @DunciesNL
    @DunciesNL 6 ปีที่แล้ว +5

    I am a wordpress theme developer for over 3 years now, but I always fall back to your videos when I dont know what I am doing haha! Thanks for the awesome tutorials.

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

      Oh wow, thank you so much for the trust :D

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

      Haha no thank you. I have learned how to make templates by watching your turorials. I have my own company now. And that is all becouse of you. If i did not find your channel, i maybe would never have learned how to make templates and start the business. So thank you. (Sorry for the english haha i am dutch)

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

      Wow, that's an awesome story, I'm sure my tutorials helped, but opening your own company was 99% because of you and your commitment, amazing achievement! :D

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

      @@alecaddd I remember 2 years ago with my empty mind I watched your video. I learned from you. You are awesome. Yes Alecaddd you are great.

  • @CyberIllusions
    @CyberIllusions 9 ปีที่แล้ว +4

    I thought that part 5 would be online about next week, but surprise, surprise: Boom, there it is!! THX, Alessandro!! You make learning WP a lot of fun!! ;-)

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

      +CyberIllusions I didn't sleep, climbed a mountain and killed a dragon, just to do this tutorial a week in advance. And all for you :P

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

    Priceless content! Bravo! I have paid for 2 different courses but finally found the best for free. Amazing! Wish you earn multiple times more, than other authors, who charge for their courses!

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

    Since I started to encode wordpress themes so I waited a series of tutorials about options for a theme, and the rest of tutorials wait. A big plus these tutorials, thank you very much.

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

      +Bucur Ion Niculae Thank you for following, I'm glad these tutorials are helpful for you.
      Happy Coding!

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

    You rock!
    You saved my life with these informative videos. Ive spent much time with php learning procedural code and working up to oop extending classes and using SQL to make custom queries. This was the missing element. Huge Fan!

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

      +Mark Grover Thank you so much for this nice comment, I'm really happy to hear that.
      Happy Coding!

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

    Alessandro, again a briliant tut! I've run into some issues with saving (lesson 4) but I guess I need to learn to write properly :-). Thanks again, I can't wait until the next episode.
    Please remember, you can sleep when you're old and retired ;-)

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

      +fam Schrikkema And what if I already consider myself old? Can I sleep now? Please?! >_>

  • @spradohak
    @spradohak 8 ปีที่แล้ว +6

    thank you for the videos, for your time, for the effort and for helping us,
    you are awesome

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

      +Mohamed Hak Happy to hear that. Thank you so much for following!

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

    These tutorials is simply amazing. Thank you.

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

      Thank you so much

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

    I can't thank you enough. This is helping me alot... I spent many days reading the documentation but I never got enough. Thank you. I can create better websites now.

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

      Happy to be helpful!

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

    eagerly waiting to see Redux Framework Tuto.. BTW, It's rocking.

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

    attesa per il prossimo capitolo della serie . alex grande maestro.

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

      +Jose Rafael Rojas B. Dude, that's perfect Italian.
      Anyway, you sent me this comment in the exact moment a hit the "Publish" button. Part 6 is up :D

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

    Desperately awaiting for the next video...

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

      Desperately trying to edit the next 2 videos in Blender. They should be available tomorrow, or Saturday

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

    Thank you for sharing your knowledge #Alessandro, It is sensational, congratulations.

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

      Thank you so much for watching :D

  • @ValentinScarevnea
    @ValentinScarevnea 9 ปีที่แล้ว +5

    Nice, nice, really nice, hope you add in the next video, the output of this settings fields.
    Thanks a lot really good video, really gooooooood, best.

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

      +Valentin Scarevnea We're gonna stay on the admin panel a little bit more, to add more advanced functionalities, before jumping on the front end. Happy Coding!

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

    Thanks Aless!

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

    Thank you, this is great, it gives me some confidence that I never have.

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

      Happy to hear that :D

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

    Hey Alex, there has been a lot of updates during these last few years since you've made this series! It'd be great if you create another series of tutorial on WordPress theme development for beginners. Would appreciate that very much. This series helped me out to get started with a very base knowledge on WP development. Now, it'd be great if you had brought another series of tutorial with good explanations.
    Thanks!

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

      I just started a Gutenberg series. Once that's finished, I will start a new beginner series for WP 5+
      Cheers

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

      @@alecaddd Thanks a lot for your response. Glad to hear that! Eagerly waiting for the series. Thanks again!

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

    this course is awesome ! Thanks a lot my brother !

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

      You're very welcome

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

    Thank you alessandro, you're awesome

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

    I'm Lovin it . Keep Going

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

      +Bader Rj I will :D

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

    this si awesome i enjoying my coding with you. learn alot from WP 101 series. you just change one word str_replace('super cooool', 'happy coding', $output) hahahahah
    thank you sooo mcuh for teaching us.

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

      Thank you so much for this positive comment.
      Happy Coding!

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

    Thank you so much for this series #Alessandro! How would you go about using social media links instead of handlers?

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

      You can let the use insert a URL and sanitize that. Is there something specific you're trying to achieve?

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

      Thank you for responding. Yes, I’m using social media icons in the footer. These should link to the respective pages / sites.

  • @JamesKing-jk1ew
    @JamesKing-jk1ew 8 ปีที่แล้ว +1

    Great tutorials, I'm learning lots. I'm curious in which tutorial will you learn how to output this information? So for example, it would be great to use the Twitter handler on a hyperlink Twitter icon.
    I've made some additional boxes, such as a telephone number, email address and I'm looking forward how to output this information on the front end. Which tutorial would I need to review to find this out please?

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

      All the info saved in the back-end will be outputted in the video about the sidebar, where I explain how to create a custom widget and print all the data in it.
      I suggest you to not skip any video tho. I follow a linear process of creating the back-end first, and then managing the front-end.
      Happy Coding!

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

    so very useful ! tanx!

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

      +Seyed Ali Mousavi Happy to hear that

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

    Thank you, man!

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

      You're welcome :D

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

    Hey Alessandro, is this method the same to strip specific user input from the customizer api instead? for example a setting to change font size, to remove px or em from the users input?

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

      I haven't had the chance to fully use the customizer API yet, but this method is standard PHP, so it's should work the same.
      Cheers

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

    Hi Alessandro, You are the best! Can you tell me which code editor is this? Thanks a lot!

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

      In these tutorials I was using Panic Coda but I recently switched to VSCode

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

    Thank you aless ❤️

  • @harounbouhdid9046
    @harounbouhdid9046 2 ปีที่แล้ว

    Nice job thanks!👍

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

    always thumbs up

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

    For each register field do we need to create separate function? Can we wrote HTML inside add_settings_field() function?

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

    Hello,
    i like to ask 1 question?
    its better to create a custom template or to use a prebuild template from themeforest or other website ?
    thanks

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

      I'll always recommend to build a custom template as you'll gain knowledge, improve your skills, and have full control on the code and the output.
      Editing a pre-built template will always give you headaches as you don't know how it was originally setup and how easy is to tweak the code.

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

      @@alecaddd thanks for your answer, i will try to make a custom template and to gain more knowledge :)

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

    Alessandro, excellent tutorial.
    I have a doubt. I need display a data wich I saved in inputs that I created. How I would do? I need to do some select or for each or there is a way easier?

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

      Keep watching the tutorials to learn how to easily print your saved data in your front-end.
      Cheers

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

      Yes. I learned in minutes hehe thanks.

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

    where is the $input came from? we can use html input as variable without specify? I'm kinda confused . BTW thank you so much for good videos.

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

      We're generating all the input fields dynamically with WordPress methods.
      As you can see, we define the fields and register the settings, then we print those settings with a wordpress method, and the form is there for us without the necessity of writing the entire html.

  • @babu-oh8ss
    @babu-oh8ss 7 ปีที่แล้ว

    Hi, in the previous video add_action('admin_init', sunset_custom_settings) was inside sunset_add_admin_page() function, and you mentioned the benefit of it. However in this video it is outside of the function. Was that intentional?

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

    Can we have single sanitization callback for multiple fields?

  • @yasinfaruk_yf
    @yasinfaruk_yf 8 ปีที่แล้ว +6

    I am newbie in wordpress but this video help me a lot. #Alessandro Castellani do you have any plan to make any tutorial about Wordpress Plugin Development, PHP and object oriented PHP . Plz do it for us . Thanks , God bless you.

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

      +yasin faruk Hi, thanks for following. Yes, after this series I will do a Plugin and Widget development series.
      I'm thinking to start also a PHP101 for beginners. I'll do that sooner or later.

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

      plz do PHP and advance PHP too.ty

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

      Oh, yeah... PHP101 for beginners! Untill reading this message Avatar 2 was my most expected release :))

    • @MuhammadAdnan-gx6rd
      @MuhammadAdnan-gx6rd 6 ปีที่แล้ว

      php 101 not created yet ?

  • @RohitSaini-qg2xh
    @RohitSaini-qg2xh 8 ปีที่แล้ว +1

    hi alessandro i am pleased with your guidance , i want to learn two things can you please make it so 1st is getting in javascript jquery and angular js, 2nd is i want to learn proper way to create directories in wordpress according me eg like change structure of root files and change name of wp-content wp-admin according to my wish and so on so as to make my wordpress website more secure and not hackable easily.

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

      Hi, thanks for watching!
      I'm planning to do a series about jquery, javascript, and angularjs, so sooner or later you will see those videos on my channel.
      About your request, I advice you to not do anything like that.
      You shouldn't touch the source code of WordPress other than inside your theme folder.
      WordPress is pretty secure by default, and if you change the basic folder structure you will end up destroying it and making it unusable.
      Don't use a framework or a CMS if you're not planning to respect its structure and logic.
      You can always build something custom from scratch in PHP.
      Happy Coding!

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

    I added some functions to don't repeat the code every time ^^, I pass the code if some1 want to re-use it :).
    function register_settings( $group, $options = array() ) {
    foreach ( $options as $option ) {
    register_setting( $group, $option );
    }
    }
    function sunset_custom_settings() {
    $group = 'sunset-settings-group';
    $options = [ 'first_name', 'last_name', 'facebook_handler', 'gplus_handler' ];
    register_settings( $group, $options );
    // To avoid multiple IF's, repeat register_setting with extra option
    register_setting( 'sunset-settings-group', 'twitter_handler', 'sunset_sanitize_twitter_handler' );
    add_settings_section( 'sunset-sidebar-options', 'Sidebar Options', 'sunset_sidebar_options', 'alecadd_sunset' );
    $args = format_myArgs( 'first_name', 'text', 'First Name' );
    add_settings_field( 'sidebar-name', 'First Name', 'sunset_sidebar_addField', 'alecadd_sunset', 'sunset-sidebar-options', $args );
    $args = format_myArgs( 'last_name', 'text', 'Last Name' );
    add_settings_field( 'sidebar-lastname', 'Last Name', 'sunset_sidebar_addField', 'alecadd_sunset', 'sunset-sidebar-options', $args );
    $args = format_myArgs( 'twitter_handler', 'text', 'Twitter handler', 'Input your Twitter username without the @ character.' );
    add_settings_field( 'sidebar-twitter', 'Twitter handler', 'sunset_sidebar_addField', 'alecadd_sunset', 'sunset-sidebar-options', $args );
    $args = format_myArgs( 'facebook_handler', 'text', 'Facebook handler' );
    add_settings_field( 'sidebar-facebook', 'Facebook handler', 'sunset_sidebar_addField', 'alecadd_sunset', 'sunset-sidebar-options', $args );
    $args = format_myArgs( 'gplus_handler', 'text', 'Google+ handler' );
    add_settings_field( 'sidebar-gplus', 'Google+ handler', 'sunset_sidebar_addField', 'alecadd_sunset', 'sunset-sidebar-options', $args );
    }
    function sunset_sidebar_options() {
    echo 'Customize your Sidebar Information';
    }
    function format_myArgs( $name, $type, $placeholder, $desc = false ) {
    return array(
    'name' => $name,
    'type' => $type,
    'placeholder' => $placeholder,
    'desc' => $desc
    );
    }
    function sunset_sidebar_addField( $args ) {
    $value = esc_attr( get_option( $args['name'] ) );
    echo '
    ' . $args['desc'] . ' ';
    }
    // Sanitization settings
    function sunset_sanitize_twitter_handler( $input ) {
    $output = sanitize_text_field( $input );
    $output = str_replace( '@', '', $output );
    return $output;
    }
    Thanks Alecadd! :) I'm learning a lot!.

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

      Thanks for sharing

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

      Alessandro Castellani to you for teaching us!😁👍🏼🔝

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

    I got one quick question if you have a few minutes. I have an advanced custom field title, which I would like to turn into a URL automatically for the ID of that section. Do you know how to turn text into a URL?

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

      Turn text into URL? I'm not sure I understand what you mean

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

      @@alecaddd I want a title to be automatically turned into a URL, I figured it out like this But thanks for getting back to me so quick!

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

    Isn't there some other option than calling function for every custom field? What if we have 15/20 fields? It's just seems messy :) Maybe something like array?

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

      Yes, absolutely. WordPress has a pretty awesome serializing function to save multiple options in the db. I will do a video on how to optimize the entire admin section later on. It's a bit advanced and I didn't want to create confusion before learning the basics

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

      Great, will be checking that video for sure!

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

    Hi Alex, thank you so much for your brilliant work!
    I get stuck with saving the values in the fields. If I fill all fields and click 'Save Changes', it saves only my First Name and the rest of the fields have a placeholder. I've already checked my spelling and all variable names but still do not find a problem. Do you have a clue what I could miss?

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

      I've just found an error, a typical spelling error :-) setting-group instead of settings-group.
      Thanks anyway, you are awesome, keep going :)

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

      I'm glad you found the issue, those micro spelling mistakes are the worst and I do them all the time :D
      Happy Coding!

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

    what code editor you use in this lesson video ? thanks, sorry for bad english.

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

      Panic Coda

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

      thanks dude :)

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

    Hi Alex, i can't add section via add_settings_section() in admin profile page, i write add_settings_section('garage-profile-sidebar', 'Sidebar Options', 'garage_profile_sidebar_options', 'profile.php'); maybe you know what i need to write in $page = "???" ?

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

      Check my source code on github if something doesn't work.

  • @MuhammadAdnan-gx6rd
    @MuhammadAdnan-gx6rd 6 ปีที่แล้ว

    i'm wondering is it the part of wordpress theme ? why admin page ? there is already a admin page of wordpress

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

    Alessandro Dude, lol. Great tuts, sir Dude.

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

    How can I append a url to the username so that it becomes a link to the social media profile?

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

    I noticed you’ve moved the do_action() outside of the sunset_add_admin_page() scope in this video, what’s the reason for this?

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

      do_action()? At which minute you're referring to?

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

      Apologies, add_action('admin_init', 'sunset_custom_settings') - It's clear in Part 4 (Please refer to my Part 4 comment)

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

    NICE

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

      Definitely nice :D

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

    why i do this way when i can use custom fields in posts to do that?
    just do cat for social media every icon add in custom field and so that link am i wrong?
    i am wp beginner developer just need to learn right.

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

    are the inputs supposed to be saved somewhere? cause I checked the database there are no input value thatI typed in.

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

      They should be stored in the wp_options table with the unique meta_key we specified

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

      Thanks for replying. I just found out my mistake. Actually it was a syntax error. That's why the settings were not saved.

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

    Alex, this way, should we also sanitize first-name , last-name ?

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

      +salman kashfy yes you can do it if you think you'll need to add that extra layer of safety

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

    It would be nice if you give an update the code on Github...

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

      +Bucur Ion Niculae Uh, I forgot to do that. Thanks for the reminder, now it's updated.

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

      +Alessandro Castellani I look forward to the rest of the tutorials. thank you

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

    ERROR: options.php could not found. this is error. plz pronlam solv this question

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

      Check my source code on Github, probably you have some small typo somewhere.

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

    What is the theme of Coda that you are using?

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

      It's called Panic Palette, and you can find it on the official website of Coda

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

      Thank you so much. You are awesome.!!

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

    how do you modify data before it gets post to databse

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

      I showed in the tutorial how to use a callback function when registering settings. In the case of the Twitter field I'm sanitizing the input and removing the @ symbol before it gets stored in the DB

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

    Why not use an HTML template file instead of echoing out the fields.

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

      You could use a PHP template for sure, not HTML. It depends on how you prefer to manage your code, but then you will end up with 20+ files with a single input each. I prefer to keep everything in one place, when the function is short.

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

      +Alessandro Castellani I see, that makes sense. Thanks for the response.

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

    Hi Alessandro,
    Thanks For the tutorial I learn more about WordPress. :D

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

    I entered the placeholder but the text does not appear in the input..why? WP 4.8.2

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

      Solved :)

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

      How did you solve it? I have same issue and trying to figure it out now. so far, if I delete my name the placeholder text appears but if I save that, the placeholder text goes away again.

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

      Brett S now i don't remember but i suggest you to download the code and replace It or check for a typo.

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

      Hi Giulio, thank you for your response.I figured it out, tried to find this post to update but could not until I saw your reply notification. Anyhoo...I was using notepad++ text editor and had spaces between the single quote and double quote characters and that was the cause. I hope this helps somebody else. Thank you again!

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

    And a field for email-to-be-sent-to all the mail from the contact form, a custom contact form build ^_^

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

      +Valentin Scarevnea Yup, this will come soon, into another page of the admin area, to manage the customization of the built-in contact form.

  • @03tarun
    @03tarun 7 ปีที่แล้ว

    Hi aless! thank you for the tutorial.... ive learned a lot.. :)
    but i have a problem on sanitizing on twitter handler...
    when i saved the twitter handler to the wordpress... the twitter handler textbox gets empty even without a special character.
    Here is my code...
    register_setting('sunset-settings-group', 'twitter_handler', 'sunset_sanitize_twitter_handler' );
    function sunset_sanitize_twitter_handler ( $input) {
    $ouput = sanitize_text_field($input);
    $output = str_replace('@', ' ', $output);
    return $output;
    }
    please help.. thanks alessandro!

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

      I suggest you to check my source code on Github and compare it with yours, just to see if you have some small typo

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

    Visual Composer or page builder make it video to u???
    if make it then link paste it.

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

      I did a couple of video reviews about Elementor and Oxygen. Take a look at those.
      Cheers