diff --git a/lib/bootstrap.php b/lib/bootstrap.php
index edea21a..f712a3a 100644
--- a/lib/bootstrap.php
+++ b/lib/bootstrap.php
@@ -139,4 +139,16 @@ function bfg_modify_classes_based_on_template( $classes_to_add, $context, $attr
$classes_to_add = bfg_layout_options_modify_classes_to_add( $classes_to_add );
return $classes_to_add;
+}
+
+// Skip Navigation
+add_action( 'genesis_before', 'bfg_skip_navigation' );
+function bfg_skip_navigation() {
+ echo 'Skip to main content';
+}
+
+add_filter( 'genesis_attr_content', 'bfg_attr_content' );
+function bfg_attr_content( $attr ) {
+ $attr['id'] = 'content';
+ return $attr;
}
\ No newline at end of file
diff --git a/lib/customizer.php b/lib/customizer.php
index 8155562..24a3e03 100644
--- a/lib/customizer.php
+++ b/lib/customizer.php
@@ -1,6 +1,6 @@
__( 'Logo', 'bfg' ),
'priority' => '25'
);
-
+
$options['logo'] = array(
'id' => 'logo',
'label' => __( 'Upload logo', 'bfg' ),
@@ -40,7 +40,7 @@ function bfg_customizer_options() {
'section' => $section,
'default' => ''
);
-
+
// Typography
$section = 'typography';
$font_choices = customizer_library_get_font_choices();
@@ -65,10 +65,10 @@ function bfg_customizer_options() {
'choices' => $font_choices,
'default' => 'Roboto'
);
-
+
// Footer
$section = 'footer';
-
+
$sections[] = array(
'id' => $section,
'title' => __( 'Footer', 'bfg' ),
@@ -82,15 +82,15 @@ function bfg_customizer_options() {
'type' => 'text',
'default' => ''
);
-
+
// Adds the sections to the $options array
$options['sections'] = $sections;
-
+
// Adds the panels to the $options array
$options['panels'] = $panels;
$customizer_library = Customizer_Library::Instance();
$customizer_library->add_options( $options );
-
+
// To delete custom mods use: customizer_library_remove_theme_mods();
}
@@ -103,13 +103,13 @@ function bfg_customizer_fonts() {
get_theme_mod( 'body-font', customizer_library_get_default( 'heading-font' ) )
);
$font_uri = customizer_library_get_google_font_uri( $fonts );
-
+
// Load Google Fonts
wp_enqueue_style( 'customizer-fonts', $font_uri, array(), null, 'screen' );
}
if ( ! function_exists( 'bfg_customizer_build_styles' ) && class_exists( 'Customizer_Library_Styles' ) ) {
-
+
add_action( 'customizer_library_styles', 'bfg_customizer_build_styles' );
function bfg_customizer_build_styles() {
// Heading font
@@ -140,7 +140,7 @@ function bfg_customizer_build_styles() {
)
) );
}
-
+
// Body Font
$setting = 'body-font';
$mod = get_theme_mod( $setting, customizer_library_get_default( $setting ) );
@@ -167,13 +167,13 @@ function bfg_customizer_build_styles() {
add_action( 'wp_head', 'bfg_library_styles' );
function bfg_library_styles() {
do_action( 'customizer_library_styles' );
-
+
$css = Customizer_Library_Styles()->build();
-
+
if ( !empty( $css ) ) {
echo "\n\n\n\n";
}
}
-}
\ No newline at end of file
+}