This file contains 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 | |
// Customize columns in WP Job Manager [job_dashboard]. | |
function custom_job_manager_job_dashboard_columns( $columns ) { | |
// Remove all columns. | |
unset( $columns['job_title'] ); | |
unset( $columns['filled'] ); | |
unset( $columns['date'] ); | |
unset( $columns['expires'] ); | |
This file contains 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 | |
/** | |
* Plugin Name: Get Posts via REST API | |
* Description: Gets the latest two posts from a blog via the REST API. Blog link, title and date included. | |
* Plugin URI: https://renemorozowich.com | |
* Author: Rene Morozowich | |
* Version: 1.0 | |
* Text Domain: getpostsviarestapi | |
* License: GPL v2 or later | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt |
This file contains 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
/** | |
* Add additional menu | |
*/ | |
function register_additional_menus() { | |
register_nav_menu( 'top-menu', __( 'Top Menu' ) ); | |
} | |
add_action( 'init', 'register_additional_menus' ); | |
/** | |
* Add scripts to astra_header_before |
This file contains 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
.top-header-bar { | |
background-color: #ff0000; | |
text-align: right; | |
padding: 10px 0; | |
} | |
#menu-top { | |
margin: 0; | |
} |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title in Browser Tab</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<p>This is my first web page!</p> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My Favorite Outdoor Summer Activities</title> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
<link href="https://fonts.googleapis.com/css?family=Montserrat|Playfair+Display&display=swap" rel="stylesheet"> | |
</head> | |
<body> |
This file contains 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
html { | |
padding: 5%; | |
} | |
body { | |
font-family: 'Montserrat', sans-serif; | |
} | |
h1, h2, h3, h4, h5, h6 { | |
font-family: 'Playfair Display', serif; |
This file contains 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
/* mobile first */ | |
h1 { | |
color: #ff0000; /* red */ | |
} | |
/* tablet */ | |
@media only screen and (min-width: 768px) { | |
h1 { | |
color: #ffff00; /* yellow */ | |
} |
This file contains 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
// get the button | |
var btnContent = document.getElementById("btn-content"); | |
// add a click event | |
btnContent.addEventListener("click", toggleContent); | |
// get the content | |
var content = document.getElementById("content"); | |
// hide by default | |
content.style.display = "none"; |
This file contains 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
/** | |
* Add additional menu | |
*/ | |
function register_additional_menus() { | |
register_nav_menu( 'bottom-menu', __( 'Bottom Menu' ) ); | |
} | |
add_action( 'init', 'register_additional_menus' ); | |
/** | |
* Add scripts to astra_header_after |
OlderNewer