This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .container { | |
| display: flex; | |
| column-gap: clamp(1rem, calc(1rem + (4rem - 1rem) * ((100vw - 992px) / (1280px - 992px))), 4rem); | |
| } | |
| .column { | |
| flex-basis: 50%; | |
| height: 500px; | |
| background-color: green; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Non-WWW to WWW Redirect | |
| RewriteEngine On | |
| RewriteCond %{HTTPS} off [OR] | |
| RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] | |
| RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301] | |
| # WWW to Non-WWW Redirect | |
| RewriteEngine On | |
| RewriteCond %{HTTPS} off [OR] | |
| RewriteCond %{HTTP_HOST} !^domain\.com$ [NC] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // In your Functions.php file | |
| add_action("after_setup_theme", function() { | |
| add_image_size("custom-thumbnail", 600, 400, true); | |
| add_image_size("custom-thumbnail-2", 800, 800, false); | |
| }); | |
| // Use in your template |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_shortcode("greeting", function() { | |
| return "<h2>Hello from my shortcode!</h2>"; | |
| }); |