<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tutorials Archives - Maria Papandreou | Web Designer &amp; Front-end Developer</title>
	<atom:link href="https://mariapapandreou.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>https://mariapapandreou.com/category/tutorials/</link>
	<description>Web design, Wordpress customization, Virtual assisting</description>
	<lastBuildDate>Fri, 21 Feb 2025 12:48:01 +0000</lastBuildDate>
	<language>el</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Using ACF Fields in Divi When Shortcodes Don’t Work</title>
		<link>https://mariapapandreou.com/using-acf-fields-in-divi-when-shortcodes-dont-work/</link>
		
		<dc:creator><![CDATA[marpand]]></dc:creator>
		<pubDate>Fri, 21 Feb 2025 12:42:35 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[divi]]></category>
		<category><![CDATA[shortcodes]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://mariapapandreou.com/?p=72041</guid>

					<description><![CDATA[<p>If you’ve tried adding an ACF (Advanced Custom Fields) shortcode inside a Divi Text Module or Code Module, you may have noticed that it doesn’t always work. This is because Divi doesn’t natively execute ACF shortcodes the way it does with standard WordPress shortcodes. Worry not! There’s an easy solution around that! Instead of relying [&#8230;]</p>
<p>The post <a href="https://mariapapandreou.com/using-acf-fields-in-divi-when-shortcodes-dont-work/">Using ACF Fields in Divi When Shortcodes Don’t Work</a> appeared first on <a href="https://mariapapandreou.com">Maria Papandreou | Web Designer &amp; Front-end Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you’ve tried adding an ACF (Advanced Custom Fields) shortcode inside a Divi Text Module or Code Module, you may have noticed that it doesn’t always work. This is because Divi doesn’t natively execute ACF shortcodes the way it does with standard WordPress shortcodes.</p>
<p><strong>Worry not! There’s an easy solution around that!</strong><br />
Instead of relying on Divi’s built-in functionality, we can create a custom shortcode that allows ACF fields to work inside Divi modules.</p>
<p>Let&#8217;s create a new shortcode called <strong>[acf_field]</strong>.</p>
<h3><strong>Add this PHP code to your child theme’s functions.php file:</strong></h3>
<pre><code>function get_acf_field_shortcode($atts) {
    $atts = shortcode_atts(array(
        'field' =&gt; '',
        'post_id' =&gt; get_the_ID()
    ), $atts);

    if (!empty($atts['field'])) {
        return get_field($atts['field'], $atts['post_id']);
    }

    return '';
}
add_shortcode('acf_field', 'get_acf_field_shortcode');
</code></pre>
<h3><strong>Use the Custom Shortcode in Divi</strong></h3>
<p>Now that your shortcode is ready, you can use it inside Divi modules to display the ACF field data you need. For example if your ACF name is price you can display it in a Divi Text Module using the following:</p>
<pre><code>The price is: [acf_field field="price"]€
</code></pre>
<p>Just replace &#8220;price&#8221; with the actual ACF field name you want to display and you&#8217;re done!</p>
<p>This happens because Divi doesn’t always execute ACF shortcodes, but it does execute shortcodes registered in functions.php!<br />
<strong>Try it out and let me know if you have any questions! </strong></p>
<p>The post <a href="https://mariapapandreou.com/using-acf-fields-in-divi-when-shortcodes-dont-work/">Using ACF Fields in Divi When Shortcodes Don’t Work</a> appeared first on <a href="https://mariapapandreou.com">Maria Papandreou | Web Designer &amp; Front-end Developer</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WordPress TAGS Shortcode</title>
		<link>https://mariapapandreou.com/wordpress-tags-shortcode/</link>
					<comments>https://mariapapandreou.com/wordpress-tags-shortcode/#respond</comments>
		
		<dc:creator><![CDATA[marpand]]></dc:creator>
		<pubDate>Wed, 21 Feb 2018 10:57:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[divi]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://mariapapandreou.com/?p=2013</guid>

					<description><![CDATA[<p>The post <a href="https://mariapapandreou.com/wordpress-tags-shortcode/">WordPress TAGS Shortcode</a> appeared first on <a href="https://mariapapandreou.com">Maria Papandreou | Web Designer &amp; Front-end Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="et_pb_section et_pb_section_0 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_0">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_0  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_0  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner">So I&#8217;ve been using <a href="https://www.elegantthemes.com/gallery/divi/">DIVI theme</a> (by <a href="https://www.elegantthemes.com/gallery/divi/"><em>Elegant Themes</em></a>) for quite a while and I needed to find a way to add the post&#8217;s tags inside the post&#8217;s body. Since Divi doesn&#8217;t have this module I had to make my own shortcode.

As we can see in the <a href="https://codex.wordpress.org/Function_Reference/get_the_tag_list">WordPress Codex</a> the function that returns the tag list we want is&nbsp;<a href="https://codex.wordpress.org/Function_Reference/get_the_tag_list">get_the_tag_list()</a>.
<h2>Usage</h2>
<strong>&lt;?php $tag_list = get_the_tag_list( $before, $sep, $after, $id ); ?&gt;</strong>

This function does not display anything &#8211; if you want to put it straight onto the page, you should use echo get_the_tag_list();.

Alternatively, you can assign it to a variable for further use by using $foo = get_the_tag_list();.

The variables are all optional. You can use HTML inside each of the fields.
<h2>Parameters</h2>
<strong>$before</strong>
(string) (optional) Leading text.
Default: &#8216; &#8216;

<strong>$sep</strong>
(string) (optional) String to separate tags.
Default: &#8216; &#8216;

<strong>$after</strong>
(string) (optional) Trailing text.
Default: &#8216; &#8216;

<strong>$id</strong>
(integer) (optional) Post ID.
Default: Current post ID
<h2>Create your own shortcode</h2>
Just add the following code in your theme&#8217;s functions.php file:
<blockquote>function wp_divi_tags() {

return get_the_tag_list(&#8216;&lt;p&gt;Tags: &#8216;,&#8217;, &#8216;,'&lt;/p&gt;&#8217;);
}
add_shortcode(&#8216;tags&#8217;, &#8216;wp_divi_tags&#8217;);</blockquote>
Then just use the SHORTCODE <img decoding="async" class="alignnone wp-image-2016 size-full" src="https://mariapapandreou.com/wp-content/uploads/2018/02/tags.png" alt="" width="58" height="14">&nbsp;anywhere you want.

&nbsp;</div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>
<p>The post <a href="https://mariapapandreou.com/wordpress-tags-shortcode/">WordPress TAGS Shortcode</a> appeared first on <a href="https://mariapapandreou.com">Maria Papandreou | Web Designer &amp; Front-end Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mariapapandreou.com/wordpress-tags-shortcode/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Facebook &#8220;Creating content with this name is not allowed. Try another name&#8221; SOLVED</title>
		<link>https://mariapapandreou.com/facebook-creating-content-with-this-name-is-not-allowed-try-another-name-solved/</link>
					<comments>https://mariapapandreou.com/facebook-creating-content-with-this-name-is-not-allowed-try-another-name-solved/#respond</comments>
		
		<dc:creator><![CDATA[marpand]]></dc:creator>
		<pubDate>Fri, 08 May 2015 08:01:09 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[facebook]]></category>
		<guid isPermaLink="false">https://mariapapandreou.com/?p=1892</guid>

					<description><![CDATA[<p>Sometimes when trying to convert a Facebook Profile to a Page (either because you choose to or because Facebook makes you) you might get the following error message, when trying to name your Page: &#8220;Creating content with this name is not allowed. Try another name&#8221; Some of you get this error even when leaving the [&#8230;]</p>
<p>The post <a href="https://mariapapandreou.com/facebook-creating-content-with-this-name-is-not-allowed-try-another-name-solved/">Facebook &#8220;Creating content with this name is not allowed. Try another name&#8221; SOLVED</a> appeared first on <a href="https://mariapapandreou.com">Maria Papandreou | Web Designer &amp; Front-end Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sometimes when trying to convert a Facebook Profile to a Page (either because you choose to or because Facebook makes you) you might get the following error message, when trying to name your Page: &#8220;<strong>Creating content with this name is not allowed. Try another name&#8221;</strong></p>
<p style="text-align: left;">Some of you get this error even when leaving the same name. If you try to change the name in order for Facebook to accept it then moy may get the following error message: &#8220;<strong>Our automated system has detected that the name &#8230;. is not same or similar to your profile name &#8230;.. Please keep it same or similar and retry.&#8221;</strong></p>
<p style="text-align: left;">A <strong>simple solution</strong> that usually works, is to <span style="color: #ff0000;"><strong>capitalize all first letters</strong></span> of the name. For example if your profile name was &#8220;SIMPLE PROFILE NAME&#8221; then try changing it to &#8220;Simple Profile Name&#8221;.</p>
<p style="text-align: left;"><strong>GREEK VERSION</strong></p>
<p style="text-align: left;">Σε πολλές περιπτώσεις κατά την διάρκεια μετατροπής του Facebook προφίλ σας σε Σελίδα Facebook (είτε από επιλογή σας, είτε επειδή σας αναγκάζει το Facebook) μπορεί να λάβετε το εξής μήνυμα σφάλματος: &#8220;<strong>Η δημιουργία περιεχομένου με αυτό το όνομα δεν επιτρέπεται. Δοκιμάστε ένα άλλο όνομα.</strong>&#8220;</p>
<p style="text-align: left;">Αν προσπαθήσετε να το αλλάξετε μπορεί στην συνέχεια να εμφανίσει το επόμενο σφάλμα &#8220;<strong>Το αυτοματοποιημένο σύστημά μας εντόπισε ότι η σελίδα &#8220;&#8230;&#8221; δεν είναι η ίδια ή παρόμοια με το όνομα προφίλ &#8220;&#8230;&#8221;. Διατηρήστε το ίδιο ή παρόμοιο όνομα και προσπαθήστε ξανά.</strong>&#8220;</p>
<p style="text-align: left;">Μια απλή λύση που συνήθως δουλεύει είναι το να <strong><span style="color: #ff0000;">μετατρέψετε τα πρώτα γράμματα των λέξεων του ονόματος σε κεφαλαία</span></strong>. Για παράδειγμα αν το όνομα του προφίλ σας ήταν &#8220;ΟΝΟΜΑ ΠΡΟΦΙΛ&#8221; δοκιμάστε να το κάνετε &#8220;Ονομα Προφιλ&#8221;. <strong>Προσοχή</strong>, αν αρχικά το όνομα ήταν γραμμένο με κεφαλαία γράμματα, τότε στην μετατροπή του ονόματος μην προσθέσετε τόνους γιατί δεν θα γίνει δεκτό και θα σας δώσει το δεύτερο μήνυμα σφάλματος.</p>
<p>&nbsp;</p>
<p>The post <a href="https://mariapapandreou.com/facebook-creating-content-with-this-name-is-not-allowed-try-another-name-solved/">Facebook &#8220;Creating content with this name is not allowed. Try another name&#8221; SOLVED</a> appeared first on <a href="https://mariapapandreou.com">Maria Papandreou | Web Designer &amp; Front-end Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mariapapandreou.com/facebook-creating-content-with-this-name-is-not-allowed-try-another-name-solved/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Responsive YouTube videos</title>
		<link>https://mariapapandreou.com/responsive-youtube-video/</link>
					<comments>https://mariapapandreou.com/responsive-youtube-video/#respond</comments>
		
		<dc:creator><![CDATA[marpand]]></dc:creator>
		<pubDate>Tue, 06 May 2014 08:52:05 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design Articles]]></category>
		<category><![CDATA[Ελληνικα αρθρα]]></category>
		<guid isPermaLink="false">https://mariapapandreou.com/?p=1537</guid>

					<description><![CDATA[<p>Το YouTube αλλά και άλλες παρόμοιες ιστοσελίδες (Vimeo, Dailymotion κ.α.) δίνουν εύκολα την δυνατότητα ενσωμάτωσης των βίντεο τους σε άλλες ιστοσελίδες παρέχοντας ένα μικρό κομμάτι κώδικα στους ενδιαφερόμενους χρήστες, που έχει την παρακάτω μορφή: Χρησιμοποιώντας αυτόν τον κώδικα όλα φαίνονται σωστά στην Desktop έκδοση μιας ιστοσελίδας. Τι γίνεται όμως με τα Responsive websites; Για να προσαρμόζεται [&#8230;]</p>
<p>The post <a href="https://mariapapandreou.com/responsive-youtube-video/">Responsive YouTube videos</a> appeared first on <a href="https://mariapapandreou.com">Maria Papandreou | Web Designer &amp; Front-end Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Το YouTube αλλά και άλλες παρόμοιες ιστοσελίδες (Vimeo, Dailymotion κ.α.) δίνουν εύκολα την δυνατότητα ενσωμάτωσης των βίντεο τους σε άλλες ιστοσελίδες παρέχοντας ένα μικρό κομμάτι κώδικα στους ενδιαφερόμενους χρήστες, που έχει την παρακάτω μορφή:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;//www.youtube.com/embed/Uk_vV-JRZ6E?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;
</pre>
<p>Χρησιμοποιώντας αυτόν τον κώδικα όλα φαίνονται σωστά στην Desktop έκδοση μιας ιστοσελίδας. <strong>Τι γίνεται όμως με τα Responsive websites;</strong></p>
<p>Για να προσαρμόζεται το μέγεθος του video θα πρέπει να ακολουθήσουμε μερικά ακόμη βήματα πριν δημοσιεύσουμε το άρθρο ή την σελίδα που περιλαμβάνει το βίντεο.</p>
<h3>Που είναι ο κώδικας που χρειαζόμαστε στο YouTube</h3>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1550" src="https://mariapapandreou.com/wp-content/uploads/2014/05/embedcodeyoutube.png" alt="youtube embed code " width="627" height="319" srcset="https://mariapapandreou.com/wp-content/uploads/2014/05/embedcodeyoutube.png 627w, https://mariapapandreou.com/wp-content/uploads/2014/05/embedcodeyoutube-300x153.png 300w" sizes="(max-width: 627px) 100vw, 627px" /></p>
<h3>Πρώτος (πιο γρήγορος) τρόπος</h3>
<p>Επισκεπτόμαστε την ιστοσελίδα <a title="Embed Responsively" href="https://embedresponsively.com/">Embed Responsively</a>. Το συγκεκριμένο website δίνει έτοιμο τον κώδικα που θα χρειαστούμε. Το μόνο που πρέπει να κάνουμε είναι να εισάγουμε στο αντίστοιχο πεδίο είτε την διεύθυνση του βίντεο που θέλουμε είτε το embed κώδικα ανάλογα με το τι μας ζητάει. Υποστηρίζει το YouTube, Vimeo, Google Maps, Instagram, Vine κ.α.</p>
<p>Παράδειγμα κώδικα για responsive video YouTube από το <a title="Embed Responsively" href="https://embedresponsively.com/">Embed Responsively</a>.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;style&gt;.embed-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
max-width: 100%;
height: auto; } 

.embed-container iframe, .embed-container object, .embed-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%; }&lt;/style&gt;

&lt;div class='embed-container'&gt;&lt;iframe src='https://www.youtube.com/embed/QILiHiTD3uc' frameborder='0' allowfullscreen&gt;&lt;/iframe&gt;&lt;/div&gt;
</pre>
<h3>Δεύτερος τρόπος</h3>
<p>Για τον δεύτερο τρόπο χρειάζεται να έχετε πρόσβαση στα αρχεία της ιστοσελίδας. Αν έχετε wordpress αυτό μπορεί να γίνει και μέσα από την επεξεργασία της εμφάνισης της ιστοσελίδας, στην διαχείριση.</p>
<p>Αρχικά βάλτε τον embed κώδικα που σας δίνει το YouTube στο νέο σας άρθρο ή σελίδα.</p>
<pre class="brush: xml; title: ; notranslate">&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;//www.youtube.com/embed/Uk_vV-JRZ6E?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;</pre>
<p>Στην συνέχεια θα πρέπει να βάλουμε τον παραπάνω κώδικα μέσα σε ένα &lt;div&gt; ώστε να μπορέσουμε εύκολα να το επεξεργαστούμε.</p>
<pre class="brush: xml; highlight: [1,3]; title: ; notranslate">
&lt;div class=&quot;youtube-video&quot;&gt;
&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;//www.youtube.com/embed/Uk_vV-JRZ6E?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;
&lt;/div&gt;</pre>
<p>Τέλος προσθέτουμε τον παρακάτω κώδικα στο αρχείο CSS.</p>
<pre class="brush: css; title: ; notranslate">
.video-responsive {
    overflow:hidden;
    padding-bottom:56.25%;
    position:relative;
    height:0;
}
.video-responsive iframe {
   position:absolute;
   height:100%;
   width:100%;
   left:0;
   top:0;
}</pre>
<p>Δείτε το παρακάτω παράδειγμα από το κινητό σας ή απλά μικρύνετε το παράθυρο του browser σας.</p>
<div class="youtube-video"><iframe loading="lazy" src="//www.youtube.com/embed/Uk_vV-JRZ6E?rel=0" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></div>
<p>The post <a href="https://mariapapandreou.com/responsive-youtube-video/">Responsive YouTube videos</a> appeared first on <a href="https://mariapapandreou.com">Maria Papandreou | Web Designer &amp; Front-end Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mariapapandreou.com/responsive-youtube-video/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
