changed the style to a minified version, use the main one as template
This commit is contained in:
parent
2ecb13e1c9
commit
dba4d52f10
@ -1,16 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// function file for mfwpt
|
// function file for mfwpt
|
||||||
|
|
||||||
// enqueue the stye
|
// enqueue the stye
|
||||||
|
|
||||||
function mytheme_enqueue_style() {
|
function mytheme_enqueue_style() {
|
||||||
wp_enqueue_style( 'style', get_stylesheet_uri() );
|
wp_enqueue_style( 'style.min', get_stylesheet_uri() );
|
||||||
}
|
}
|
||||||
add_action( 'wp_enqueue_scripts', 'mytheme_enqueue_style' );
|
add_action( 'wp_enqueue_scripts', 'mytheme_enqueue_style' );
|
||||||
|
|
||||||
|
|
||||||
//set up the menus
|
//set up the menus
|
||||||
|
|
||||||
function register_my_menus() {
|
function register_my_menus() {
|
||||||
register_nav_menus(
|
register_nav_menus(
|
||||||
@ -23,5 +23,4 @@ function register_my_menus() {
|
|||||||
add_action( 'init', 'register_my_menus' );
|
add_action( 'init', 'register_my_menus' );
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
?>
|
|
||||||
|
26
header.php
26
header.php
@ -1,17 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html <?php language_attributes(); ?>>
|
<html <?php language_attributes(); ?>>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
||||||
<title><?php wp_title(); ?></title>
|
<title><?php wp_title(); ?></title>
|
||||||
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
|
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
|
||||||
<?php wp_head(); ?>
|
<?php wp_head(); ?>
|
||||||
</head>
|
</head>
|
||||||
|
<body <?php body_class(); ?>>
|
||||||
<body <?php body_class(); ?>>
|
<?php wp_nav_menu( array(
|
||||||
|
'theme_location' => 'header-menu',
|
||||||
<?php wp_nav_menu( array(
|
'container_class' => 'mfwpt_menu'
|
||||||
'theme_location' => 'header-menu',
|
) );?>
|
||||||
'container_class' => 'mfwpt_menu'
|
|
||||||
)
|
|
||||||
);?>
|
|
||||||
|
|
||||||
|
21
style.css
21
style.css
@ -8,7 +8,7 @@ Version: 1.0
|
|||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
Text Domain: mfwpt
|
Text Domain: mfwpt
|
||||||
Tags:
|
Tags:
|
||||||
This theme, like WordPress, is licensed under the GPL.
|
This theme, like WordPress, is licensed under the GPL.
|
||||||
This theme, like motherfuckingwebsite.com is satire
|
This theme, like motherfuckingwebsite.com is satire
|
||||||
Use it to make something cool, have fun, and share what you've learned with others.
|
Use it to make something cool, have fun, and share what you've learned with others.
|
||||||
@ -24,17 +24,14 @@ body{
|
|||||||
|
|
||||||
h1,h2,h3{line-height:1.2}
|
h1,h2,h3{line-height:1.2}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* menu styles */
|
/* menu styles */
|
||||||
.mfwpt_menu ul {list-style: none; padding:0px;}
|
.mfwpt_menu ul {list-style: none; padding:0px;}
|
||||||
.mfwpt_menu ul ul {display: none;position:absolute;background-color: white;}
|
.mfwpt_menu ul ul {display: none;position:absolute;background-color: white;}
|
||||||
.mfwpt_menu li {display:inline-block; padding-right: 20px;}
|
.mfwpt_menu li {display:inline-block; padding-right: 20px;}
|
||||||
.mfwpt_menu li a {text-decoration: none;}
|
.mfwpt_menu li a {text-decoration: none;}
|
||||||
.mfwpt_menu li:hover ul {display: block;}
|
.mfwpt_menu li:hover ul {display: block;}
|
||||||
.mfwpt_menu li li {display:block;}
|
.mfwpt_menu li li {display:block;}
|
||||||
|
|
||||||
.mfwpt_menu li ul {}
|
.mfwpt_menu li ul {}
|
||||||
.mfwpt_menu li li a {}
|
.mfwpt_menu li li a {}
|
||||||
.mfwpt_menu{}
|
.mfwpt_menu{}
|
||||||
|
1
style.min.css
vendored
Normal file
1
style.min.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
body{margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;padding:0 10px}h1,h2,h3{line-height:1.2}.mfwpt_menu ul{list-style:none;padding:0}.mfwpt_menu ul ul{display:none;position:absolute;background-color:#fff}.mfwpt_menu li{display:inline-block;padding-right:20px}.mfwpt_menu li a{text-decoration:none}.mfwpt_menu li li,.mfwpt_menu li:hover ul{display:block}
|
Loading…
x
Reference in New Issue
Block a user