Compare commits
5 Commits
d5f4004cbd
...
b886412f5f
Author | SHA1 | Date |
---|---|---|
Aadil Ayub | b886412f5f | |
Aadil Ayub | 7ac9ec03d5 | |
Aadil Ayub | 0b90197bff | |
Aadil Ayub | e4e9676864 | |
Aadil Ayub | d5da9033d4 |
|
@ -1,2 +1,14 @@
|
|||
<?php
|
||||
|
||||
function cmt_styles() {
|
||||
wp_register_style( 'custom-styles', get_template_directory_uri() . '/style.css' );
|
||||
wp_enqueue_style( 'custom-styles' );
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'cmt_styles');
|
||||
|
||||
function cmt_block_styles() {
|
||||
add_theme_support( 'editor-styles' );
|
||||
add_theme_support( 'wp-block-styles' );
|
||||
add_editor_style( 'styles.css' );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'cmt_block_styles' );
|
|
@ -3,8 +3,8 @@
|
|||
style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"><!-- wp:columns -->
|
||||
<div class="wp-block-columns"><!-- wp:column {"width":"25%"} -->
|
||||
<div class="wp-block-column" style="flex-basis:25%">
|
||||
<!-- wp:image {"id":2132,"sizeSlug":"full","linkDestination":"none"} -->
|
||||
<figure class="wp-block-image size-full"><img
|
||||
<!-- wp:image {"id":2132,"sizeSlug":"full","linkDestination":"none","align":"center"} -->
|
||||
<figure class="wp-block-image aligncenter size-full"><img
|
||||
src="http://www.cmt.localhost/wp-content/uploads/2024/04/cmt-engineering-logo.png" alt=""
|
||||
class="wp-image-2132" /></figure>
|
||||
<!-- /wp:image -->
|
||||
|
@ -39,9 +39,10 @@
|
|||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:group {"style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}}},"backgroundColor":"primary","textColor":"white","className":"main-navigation","layout":{"type":"constrained","wideSize":"1300px","contentSize":"1300px"}} -->
|
||||
<!-- wp:group {"style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"0","bottom":"0"}}},"backgroundColor":"primary","textColor":"white","className":"main-navigation","layout":{"type":"constrained","wideSize":"1300px","contentSize":"1300px"}} -->
|
||||
<div
|
||||
class="wp-block-group main-navigation has-white-color has-primary-background-color has-text-color has-background has-link-color">
|
||||
class="wp-block-group main-navigation has-white-color has-primary-background-color has-text-color has-background has-link-color"
|
||||
style="padding-top:0;padding-bottom:0">
|
||||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"left":"var:preset|spacing|60"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
|
||||
<div class="wp-block-group alignwide" style="padding-left:var(--wp--preset--spacing--60)">
|
||||
<!-- wp:navigation {"ref":2119,"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left"},"style":{"layout":{"selfStretch":"fit","flexSize":null},"typography":{"fontSize":"0.9rem"}}} /-->
|
||||
|
|
|
@ -6,3 +6,7 @@ Description: Modern block theme for CMT Engineering
|
|||
Version: 0.1
|
||||
*/
|
||||
|
||||
.wp-block-navigation .wp-block-navigation-item.current_page_item {
|
||||
padding: 1em;
|
||||
background-color: var(--wp--preset--color--secondary);
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
<!-- wp:group {"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group"><!-- wp:group {"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:template-part {"slug":"header","theme":"cmt-engineering-theme","tagName":"header","area":"header"} /-->
|
||||
|
||||
|
|
Loading…
Reference in New Issue