Skip to content
Antonio D edited this page May 3, 2020 · 19 revisions

Welcome to the books4languages-book-child-theme-for-pressbooks wiki!

// https://dashboard.popupsmart.com/dashboard if(strpos($_SERVER['REQUEST_URI'], 'english') !== false && !is_user_logged_in() && is_single('chapter')) :

		//
	else:
		     // either in about us, or contact, or management page is in view
			?>	 <script type="text/javascript"  src="https://apiv2.popupsmart.com/api/Bundle/354620" async></script>

		<?php endif; ?>

Future code:

demo link

Hide Summary secction

Summary and other extended content is only available to registered users.

<style> .textbox.textbox--summary{ display: none; } </style>

Activate for a specifical page // wp-print integration hide exercises global $post;

if( false !== strpos( $post->post_name, 'print' ) ) { // Do Things ?>

<style> .textbox .textbox--exercise{ display: none; } </style>

https://developer.wordpress.org/reference/functions/is_user_logged_in/

<style type="text/css"> YOUR CSS CODE HERE </style> <script type="text/javascript"> YOUR JS CODE HERE </script>

Insertar códigos CSS y JavaScript en

o antes de .

https://stackoverflow.com/questions/28656909/wordpress-multisite-add-function-to-functions-php-to-only-affect-1-site

ContactForm 7 https://code.tutsplus.com/articles/optimizing-contact-form-7-for-better-performance--wp-31255

icon with text with url

Download available for register students Register for download.

IMAGE INSTEAD OF DIV https://stackoverflow.com/questions/10829675/how-to-put-an-image-in-div-with-css

Table

Clone this wiki locally