From db1498506bc67775dd35895f56f1447dbdeb7419 Mon Sep 17 00:00:00 2001 From: Rashed Hossain Date: Sun, 12 Jan 2025 14:10:10 +0600 Subject: [PATCH 1/4] Create page-fullwidth.php --- page-fullwidth.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 page-fullwidth.php diff --git a/page-fullwidth.php b/page-fullwidth.php new file mode 100644 index 0000000..aaa72c2 --- /dev/null +++ b/page-fullwidth.php @@ -0,0 +1,29 @@ + + +
+
+ +
+
+ + Date: Sun, 12 Jan 2025 14:10:54 +0600 Subject: [PATCH 2/4] Update style.css --- style.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/style.css b/style.css index b3c8f2a..e94060e 100644 --- a/style.css +++ b/style.css @@ -1108,6 +1108,12 @@ img.size-full { #content .gallery-columns-4 .gallery-item img { } +/* Full-Width Template */ +.full-width { + max-width: 100%; + padding: 0 20px; +} + /* Make sure embeds and iframes fit their containers */ embed, iframe, From 2d78c9dcaed8640ad3c1beafc08c455034bd8160 Mon Sep 17 00:00:00 2001 From: Rashed Hossain Date: Sun, 12 Jan 2025 14:11:25 +0600 Subject: [PATCH 3/4] Update functions.php --- functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions.php b/functions.php index dfb9add..3bd0adb 100644 --- a/functions.php +++ b/functions.php @@ -153,3 +153,8 @@ function underscoresme_get_contributors() { return (array) $contributors; } + +function theme_name_enqueue_styles() { + wp_enqueue_style('theme-name-style', get_stylesheet_uri()); +} +add_action('wp_enqueue_scripts', 'theme_name_enqueue_styles'); From 16be966c9dd8abecb7593cb874af3e9ac4fee61b Mon Sep 17 00:00:00 2001 From: Rashed Hossain Date: Sun, 12 Jan 2025 14:12:26 +0600 Subject: [PATCH 4/4] Create generator.php --- inc/generator.php | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 inc/generator.php diff --git a/inc/generator.php b/inc/generator.php new file mode 100644 index 0000000..c37da50 --- /dev/null +++ b/inc/generator.php @@ -0,0 +1,3 @@ +// Create the custom full-width page template +$custom_page_template = "\n
\n
\n\n
\n
\n"; +file_put_contents( $theme_path . '/page-fullwidth.php', $custom_page_template );