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 if( have_rows('home_slider_images', options) ): ?> | |
<div id="maximage"> | |
<?php while( have_rows('home_slider_images', options) ): the_row(); | |
// vars | |
$image = get_sub_field('slide_image'); | |
$imageTablet = get_sub_field('tablet_image'); | |
//Check and see if were NOT at a mobile screen size |
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
// custom admin style sheet | |
function my_admin_head() { | |
$whodat = get_current_user_id(); | |
if ($whodat == 2) { | |
echo '<link href="' .get_bloginfo('stylesheet_directory'). '/css/admin-menu.css" rel="stylesheet" type="text/css">'; | |
} | |
} | |
add_action('admin_head', 'my_admin_head'); |
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
/** Register Topads widget area */ | |
genesis_register_sidebar( array( | |
'id' => 'topads', | |
'name' => __( 'Hero Area', 'custom-theme' ), | |
'description' => __( 'Here you can place a hero ad or a slider', 'custom-theme' ), | |
) ); | |
/** Add topads widget after the primary menu */ | |
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
//Dont forget to set how many items you want on each page in "Settings > Reading > Blog pages show at most" | |
<?php | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
// WP_Query arguments | |
$args = array ( | |
'pagination' => true, | |
'paged' => $paged, | |
'order' => 'ASC' | |
); |
NewerOlder