get_the_content() appears to have different behaviour with the latest versions of wordpress which has gutenburg enabled by default??? Any way round this?
If you are refering to the tags being added with get_the_content(), then the easiest method I have found to remove them is to use the following: //Remove P Tags $content = get_the_content(); $newcontent = preg_replace("/]*?>/", "", $content); $newcontent = str_replace("", "", $newcontent); echo $newcontent;
Hi Alex, I highly appreciate your endeavours and I'm very pleased to follow your tutorials. However, I have a problem with the quotation marks. When I copy the different kinds of quoation marks from the web or even from the MS Word, and paste it to scss file it automatically turns into nonsense characters like ÔÇŞ in the css file and so in the browser. Alternatively, if I paste the symbols directly to the css file no problems, it works fine also in the browser. Sass changes symbols I think. How can I solve this. Also, from where did you copy quotation marks? I couldnot understand it from the video. Thanks a in advance.
don`t know if you still have this problem but try @charset "utf-8"; at the top of your scss file where you used those characters. for your quotes depends on what system you are for mac its alt + [ is the open alt + shift + [ is the close for windows alt + 0147 is the open and alt + 0148 is the closing quote
Hi, I'm not sure what could be the problem. If you copied my source code from github, everything should work. Do you have any error in your console? Any PHP warning?
Hi Alessandro.... thanks for your videos they are awesome ... I am getting the same issue... with a warning "The key "width+device+width" is not recognized and ignored." in the console...
hello alex and thank you for everything. i try to dive in and learn also plugins and i need help. i already created the basic plugin and now i need with this plugin to edit some html of a template, i need to tell to the plugin go to this template > to this file and change this line of code. of course i can do it manually but i want to do it from a plugin and i have no idea how, i spent hours and hours to search, can you tell me how or give me a link on how to do it? if you still didnt understand what i mean, there is plugins editors that allows you through admin panel to change the code inside a file, i dont want to go there and type something i want the plugin to open this file change a line of code and of course save it. is this possible?
+ParosPasxaRide Yes, it's possible, but kinda complicated if you're not really familiar with PHP. What kind of file do you want to update? What kind of code? Overall this entire process can be done with the PHP filesystem functions: www.w3schools.com/php/php_ref_filesystem.asp Happy Coding!
Not sure if there has been a change to Bootstrap but at 6:50 in I needed to use rather than col-md-offset-2
Hope this helps others.
Yes, in these videos I was using Bootstrap 3, the recently released version is 4 so something might have changed.
thnx a lot, you've done a great job
Awesome videos. Thanks a lot. By the way, what program do you use to edit php files?
+Назар Тихонюк Thanks, I get this question so often that I made a video about it.
th-cam.com/video/7TzQLH953dg/w-d-xo.html&t=9m28s
+Alessandro Castellani Sorry, i didn't noticed this video before. Thanks a lot again. :)
In bootstrap 4 the offset class is 'offset-md-2'.
get_the_content() appears to have different behaviour with the latest versions of wordpress which has gutenburg enabled by default??? Any way round this?
If you are refering to the tags being added with get_the_content(), then the easiest method I have found to remove them is to use the following:
//Remove P Tags
$content = get_the_content();
$newcontent = preg_replace("/]*?>/", "", $content);
$newcontent = str_replace("", "", $newcontent);
echo $newcontent;
Hi Alex, I highly appreciate your endeavours and I'm very pleased to follow your tutorials. However, I have a problem with the quotation marks. When I copy the different kinds of quoation marks from the web or even from the MS Word, and paste it to scss file it automatically turns into nonsense characters like ÔÇŞ in the css file and so in the browser. Alternatively, if I paste the symbols directly to the css file no problems, it works fine also in the browser. Sass changes symbols I think. How can I solve this.
Also, from where did you copy quotation marks? I couldnot understand it from the video. Thanks a in advance.
don`t know if you still have this problem but try @charset "utf-8"; at the top of your scss file where you used those characters. for your quotes depends on what system you are for mac its alt + [ is the open alt + shift + [ is the close
for windows alt + 0147 is the open and alt + 0148 is the closing quote
:) thnx once again
+Subhasish Manna Thank you, as usual :D
hi alex quotes didn't display in front end although i copy your code are you know what's problem
Hi, I'm not sure what could be the problem. If you copied my source code from github, everything should work.
Do you have any error in your console? Any PHP warning?
Hi Alessandro.... thanks for your videos they are awesome ...
I am getting the same issue... with a warning
"The key "width+device+width" is not recognized and ignored." in the console...
hello alex and thank you for everything.
i try to dive in and learn also plugins and i need help.
i already created the basic plugin and now i need with this plugin to edit some html of a template, i need to tell to the plugin go to this template > to this file and change this line of code. of course i can do it manually but i want to do it from a plugin and i have no idea how, i spent hours and hours to search, can you tell me how or give me a link on how to do it?
if you still didnt understand what i mean, there is plugins editors that allows you through admin panel to change the code inside a file, i dont want to go there and type something i want the plugin to open this file change a line of code and of course save it.
is this possible?
+ParosPasxaRide Yes, it's possible, but kinda complicated if you're not really familiar with PHP.
What kind of file do you want to update? What kind of code?
Overall this entire process can be done with the PHP filesystem functions: www.w3schools.com/php/php_ref_filesystem.asp
Happy Coding!