Magnific Popup – Add Caption to Images

You have to add the title attribute to the <a href> code surrounding the images that the Magnific Popup effect is being applied to. The new code should look like this: $thumb_img = get_post( get_post_thumbnail_id() ); // Get post by ID $excerpt = $thumb_img->post_excerpt; // Display Caption <a href=”https://wordpress.stackexchange.com/questions/178297/{current_url_here}” title=”<?php echo $excerpt; ?>” /> It … Read more

the_content doesn’t return tags

Try This code. 1. $pages = get_pages(); foreach ($pages as $page_data) { $content = apply_filters(‘the_content’, $page_data->post_content); $title = $page_data->post_title; echo wpautop( $content ); } 2. $pages = get_pages(); if(!empty($pages)) { echo “<p>” foreach ($pages as $page_data) { $content = apply_filters(‘the_content’, $page_data->post_content); $title = $page_data->post_title; echo $content; } echo “<p>” }

EM in CSS different size on wordpress then elsewhere [closed]

From the spec: “EM is Equal to the computed value of the ‘font-size’ property of the element on which it is used.” You have a different font-size value between the two URLs you provided (14px and 10px respectively). Line 273 of your style.css file is replacing the default Bootstrap font-size for the body element (line … Read more

Hide menu theme location for certain capabilities?

Check user capabilities or roles when registering the navigation menu. The data will remain accessible via wp_nav_menu, but users without the capabilities won’t see the location in Appearance -> Menu -> Manage locations. Note this will only prevent assigning menus to these locations. Any menu assigned to the location already will be manageable (if the … Read more