how can i remove page title on desktop view

Write the CSS into style.css file @media only screen and (min-width: 768px) { .single-product .title-desc { display: none; } } .single-product CSS will only work on single product details. It will not create any issue on other pages.

Show FormCraft form on page open [closed]

From the documentation, you have to use the shortcode: [fc id=’12’ type=”popup”][/fc] Next, something has to trigger the form, you can create a button for that and then click it from jQury, edit the link which would trigger this form, and put the href or hyperlink to: <a class=”triggerForm” href=”http://yoursite.com/form-view/12″>Link Trigger</a> jQuery trigger. $(document).ready(function () … Read more

Getting ACF Field in Page – From the Footer

I have the same issue, the acf get_field() function in footer returned null. Native WP function get_post_meta( get_the_ID(), ‘option_key’, true ) didn’t work to. But when I’ve noticed that get_the_ID() function in footer returned the wrong value because I forgot to reset query after custom WP_Query. So, reset custom WP_Query (wp_reset_query()) or hard code the … Read more

Restrict the list of parent pages to only those which are created by current user

Classic editor You can use the filter hook page_attributes_dropdown_pages_args and set authors parameter in query arguments. add_filter( ‘page_attributes_dropdown_pages_args’, ‘se343814_own_post_as_post_parent’, 10, 2 ); function se343814_change_post_type_args( $dropdown_args, $post ) { // // for which types to apply the filter if ( $post->post_type != ‘page’ ) return $dropdown_args; $dropdown_args[‘authors’] = get_current_user_id(); return $dropdown_args; } Block editor In the … Read more

Published pages missing

Generally when content is missing it is often related to caching plugins. One of those plugins is OptimizePress which can sometimes conflict and make it seem the content is missing. Here is what you can try: Deactivate all plugins and check again. Ensure the server has no caching enabled by asking your hosting provider. Check … Read more

Page titles for internal classification of landing pages

The easiest way to do this without editing the page.php template in your theme is to add it as a custom field, then use a plugin (or code) to display that custom field in the control panel on your Pages list. The plugin I’d recommend is Admin Columns. It’s free and highly-rated. Once that’s installed, … Read more

Parent page shows no child content

I just installed a fresh copy of WordPress and tried to create one parent page Pages are just pages, there’s nothing special about parent pages, and it’s not a term normally used but the page shows no content If the page has no content, then there is no content to show regardless of which Official … Read more

Can I “protect” a page with a form asking for an email address?

What about filtering the_content? function se365701_require_email ( $content ) { if ( is_page( ‘require_email’ ) ) && !isset( htmlspecialchars( $_COOKIE[‘submitted_email’]) ) { return $form; // your MailChimp Form Code } else{ return $content; } add_filter( ‘the_content’, ‘se365701_require_email’ ); Note that your form provide itself may have a cookie or you may need to set it … Read more

How to show ‘tags’ in ‘WordPress Pages’ [not Posts]

enter your tags instead of the specified ones or delete the extra ones: function wps_display_custom_tags ($post_meta) { // delete meta tags you do not want to display return array( ‘author’, ‘post-date’, ‘comments’, ‘sticky’, ‘tags’); } add_filter(‘twentytwenty_post_meta_location_single_top’, ‘wps_display_custom_tags’);