adding styles to the quiz page to make the links stand out
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 1 Aug 2018 16:04:32 +0000 (12:04 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 1 Aug 2018 16:04:32 +0000 (12:04 -0400)
content-single.php
footer.php
header.php
js/custom.js

index 6c649ed..d776607 100644 (file)
@@ -11,12 +11,18 @@ $post_date_class = ((!empty($post_date) && $post_date == ' ') || has_post_thumbn
 $lessons_page = get_post(369);
 $lesson_content = $lessons_page->post_content;
 ?>
+<style>
+    #quiz-heading {
+        background-color: #3A8BB6;
+        color: white;
+    }
+</style>
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <header class="entry-header">
                <?php if(has_post_thumbnail()) : ?>
                <div class="entry-thumb">
-                       <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'blog-header' ); ?>
-                       <img src="<?php echo esc_url($image[0]); ?>" alt="<?php echo esc_attr(get_the_title()); ?>"> 
+            <?php //$image = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'blog-header' ); ?>
+                       <!-- <img src="<?php //echo esc_url($image[0]); ?>" alt="<?php //echo esc_attr(get_the_title()); ?>">  -->
                </div>
                <?php endif; 
                 $class = ($pt === 'sfwd-courses') ? 'cmvl-title' : "basic-title";
index 1263155..09f1069 100644 (file)
         })(XMLHttpRequest.prototype.open);
     </script>
 </body>
-</html>
\ No newline at end of file
+<style>
+    
+    html body #learndash_quizzes #quiz_heading {
+        background-color: #3A8BB6;
+        color: white;
+        font-size: 18px;
+    }
+    html body #learndash_quizzes #quiz_heading span:first-child{
+        padding: 4px;
+        border: 1px solid white;
+        border-radius: 3px;
+        position: relative;
+    }
+    html body #learndash_quizzes #quiz_heading span:first-child::after{
+        content: '\25bc';
+        position: absolute;
+        right: -25px;
+    }
+</style>
+</html>
index f4b1044..e13f004 100644 (file)
        endif;
        ?>
     <?php if(!is_front_page()){ 
-        glm_get_header();
+        //glm_get_header();
     } ?>
        <div id="content" class="site-content <?php echo esc_attr($content_class); ?>">
        <?php 
index 098d529..eb11c61 100644 (file)
@@ -218,6 +218,7 @@ jQuery(document).ready(function($){
     if(window.page === "login"){
         $("#modal-login").remove();
     }
+    $(".flippable").trigger("click");
     // if(window.post_type === "sfwd-lessons"){
     //     $("#learndash_mark_complete_button").css("display", "none");
     // }