How can a .css file be applied to a virtual page?

You can hook into wp_enqueue_scripts and use wp_enqueue_style() the same way you normally would, but use the same condition you use to change the template to conditionally enqueue the stylesheet: if ( get_query_var( ‘dump’, false ) !== false ) {} So you you’d load the stylesheet with this method: function enqueue_stylesheet() { if ( get_query_var( … Read more

Create multiple custom HTML pages

You can created pages within wordpress itself and then assign a custom template. You may store the template files however you like as long as they are wihtin the theme folder itself. https://developer.wordpress.org/themes/template-files-section/page-template-files/

Deleted WordPress page appears in Google Search Results

Since that page has already been indexed you can do a couple things. 1 – Add a rule in your .htaccess file that tells search engines not to index the page User-agent: * Disallow: /rights 2 – Use Google’s Remove URLs Tool. The Remove URLs tool enables you to temporarily block pages from Google Search … Read more

Why my home page doesnt work?

On your site you can see things like [vc_row xt_pattern_opacity=”100″ xt_bg_repeat=”repeat-y” xt_text_scheme=”lighter- overlay”][vc_column width=”2/3″ css=”.vc_custom_1440884085800{padding-right: 0px !important;padding-left: 0px !important;}”][vc_row_inner][vc_column_inner] It show that your theme is using Visual composer plugin but it is not activated so you have got to upload it and activate it.

How to include a query_vars value in document_title_parts?

If your query var tags is registered properly then the following code snippet will definitely work, I’ve tested it. It’s a modified version of your code snippet. Please make sure to add the code to your functions.php file. function prefix_custom_title($title_parts) { global $wp_query; if (isset($wp_query->query_vars[‘tags’])) { $title_parts[‘title’] = $wp_query->query_vars[‘tags’]; } return $title_parts; } add_filter( ‘document_title_parts’, … Read more

Recovering a page from the drafts

You can easily recover a page from the drafts. follow the steps below: See a link ” Trash” on the top of pages listing section. Click on that link which will take you to the section where all the trashed pages are listed. Select the page(which you want to publish) using the checkboxes against them. … Read more

Assign Parent Page – Now 404 Error

PLUGIN 1: After looking into this site further, I noticed I have a plugin that has created a section in the sidebar called “Products”. Within the “Products” section is a category labeled “Locations”. This is creating the /locations/part of the URL. There are several pages like the example www.example/locations/city-state. This is for a filter based … Read more

How to add custom php file to right sidebar?

There are three ways to do that: Create a widget (Recommended) Here is official documentation. You can include your php file within widget() function of your widget class. Create and place a shortcode in exiting wordpress default text widget. Here is sample code //Place this code in theme’s functions.php add_shortcode(‘ContactForm’, ‘cf_shortcode’); function cf_shortcode($att) { ob_start(); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)