Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter sg2211

    (@sg2211)

    Thanks for your reply. Your solution works great. However, I am struggling with the ‘mark_correct’ setting. I want this to be set to yes but the following code does not seem to make this happen:

    function hdq_update_quiz_settings($quizData)
    {
    $quizData->hdq_show_results_now = "yes";
    $quizData->hdq_show_extra_text = "yes";
    $quizData->hdq_share_text = "I scored %score% on the %quiz%. Can you beat me?";
    $quizData->hdq_mark_correct = "yes";
    return $quizData;
    }
    add_filter("hdq_init", "hdq_update_quiz_settings", 10, 1);

    Many thanks

    Thread Starter sg2211

    (@sg2211)

    Sorry, should have gone deeper into previous support questions where it was revealed these relate to the anti-spam engine.

    I have disabled ‘Protect comment form with bot detection engine’ and the cookies are no longer set.

    • This reply was modified 6 years, 9 months ago by sg2211.
    Thread Starter sg2211

    (@sg2211)

    I added the code you provided to .wp-show-posts-entry-header (I am only showing the Image and post title) and it worked.

    Many thanks.

    Thread Starter sg2211

    (@sg2211)

    @tahoerock Many thanks for your help with this.

    Thread Starter sg2211

    (@sg2211)

    Thanks for your reply tahoerock.

    I would rather not post the URL but it the same as the Tuto demo: https://demo.mh-themes.com/tuto/.

    I would like to remove the first large post from the magazine layout. Here is the code for the magazine layout:

    <?php /* Template for displaying posts on posts page and archives */
    $counter = 1;
    $max_posts = $wp_query->post_count;
    while (have_posts()) : the_post();
    	if ($counter === 1) :
    		get_template_part('content', 'large');
    	endif;
    	if ($counter === 1 && $max_posts > 1) : ?>
    		<div class="mh-loop-grid mh-row clearfix"><?php
    	endif;
    	if ($counter > 1 && $counter <= 4) :
    		get_template_part('content', 'grid');
    	endif;
    	if ($counter === 5) : ?>
    		</div>
    		<div class="mh-loop-list clearfix"><?php
    	endif;
    	if ($counter >= 5) :
    		get_template_part('content');
    	endif;
    	if ($counter > 1 && $counter === $max_posts) : ?>
    		</div><?php
    	endif;
    $counter++;
    endwhile; ?>

    Many thanks.

Viewing 5 replies - 1 through 5 (of 5 total)