CSS – Formattage des tables

/* Formattage des tables */ /* Formattage par defaut */ table, th, td { border: 1px solid black; border-collapse: collapse; padding: 10px; max-width: 90%; } /* Standard tr */ tr:nth-child(even) { background-color: white;} tr:nth-child(odd) { background-color: lightyellow;} tr:hover { background-color:…Continue reading

AIOSEO FAQ Block accordion

;(() => { const accordionItems = document.querySelectorAll(“.wp-block-aioseo-faq”); if (!accordionItems.length) { return; } accordionItems.forEach((item) => { const itemSummary = item.querySelector(“.aioseo-faq-block-question”); const itemContent = item.querySelector(“.aioseo-faq-block-answer”); itemSummary?.addEventListener(“click”, () => { itemContent?.style.setProperty( “–content-height”, `${itemContent.scrollHeight}px` ); item.classList.toggle(“is-open”); }); }); const faqStyles = ` .wp-block-aioseo-faq {…Continue reading

Display Random Posts

$number_of_posts = 5; // Change this to the number of random posts you want to display. $title = ‘You might also like:’; // This is the title that will be displayed above the list of posts. $current_post_id = get_the_ID(); $args…Continue reading