Elementor

Elementor + Astra Pro – Daily Banner Above Header

Get the latest from
Sniffle Valve

Sniffle Valve

Consider buying Sniffle Valve a coffee  

Book a one-on-one online training session

This video shows you how to have different Elementor created content displayed above the header using Astra Pro’s Custom Layouts.

Additional resources used:

Required code below video.

<?php  $weekday = date('l');

switch ($weekday) {
    case "Monday":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
        break;
    case "Tuesday":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
        break;
    case "Wednesday":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "Thursday":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "Friday":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "Saturday":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "Sunday":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
}
?>
Daily Banner Code
<?php  $month = date('F');

switch ($month) {
    case "January":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
        break;
    case "February":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
        break;
    case "March":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "April":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "May":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "June":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "July":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "August":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "September":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "October":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "November":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
	case "December":
        echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]');
		break;
		
}
?>
Monthly Banner Code

2 thoughts on “Elementor + Astra Pro – Daily Banner Above Header”

Leave a Comment

Your email address will not be published. Required fields are marked *