sg2211
Forum Replies Created
-
Forum: Plugins
In reply to: [HD Quiz] Change default quiz settingsThanks 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
Forum: Plugins
In reply to: [WP Cerber Security, Anti-spam & Malware Scan] Random CookiesSorry, 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.
Forum: Plugins
In reply to: [WP Show Posts] Read more positionI 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.
Forum: Themes and Templates
In reply to: [Tuto] Remove large magazine post@tahoerock Many thanks for your help with this.
Forum: Themes and Templates
In reply to: [Tuto] Remove large magazine postThanks 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.