Page Speed google is showing Style.css in render blocking - php

Can any one know how to remove style.css from render blocking in word press.
Thanks

Let me give brief about the render blocking files.
See WordPress site has a theme and plugins that add JavaScript and CSS files to the front-end of your website which can increase your site’s page load time.
When browser loads page it load those scripts and CSS before loading rest of the HTML on the page. These scripts and stylesheets are called as render-blocking JavaScript/CSS.
Solution:
You can install and activate the Autoptimize plugin. You can refer
it's installation here. This plugin gives option to optimize
JS/CSS code. After activation, you need to visit the Settings »
Autoptimize page to configure the plugin settings.
Then test your website using PageSpeed tool. If there are still render
blocking scripts, then visit plugin’s settings page again and click on
‘Show Advanced Settings’, here you allow plugin to include inline JS
and remove scripts that are excluded by default. And then retest your
site using PageSpeed.

Related

Remove jquery UI CDN from Wordpress Admin panel

I'm install wordpress on localhost for using offline works.
But I have a problem, on offline mode exist jquery ui cdn from http://code.jquery.com in admin panel (wp-admin).
that causes admin panel loading slowly and try to connect to jquery.com
I want to know, how to remove this CDN from admin panel ??
thanks.
Probably that stylesheet with CDN link was added by the theme or a plugin that you are using. You need to find it in the code, and replace the CDN link with the location of the local copy of it(hope you've already downloaded it).
For that, you need to figure out exactly where that line is in the code. If its added by the theme, maybe look for the header.php file (if its hardcoded) or maybe look at the functions.php file. It might be added through the function wp_enqueue_style()
Hope it helps!

Cannot find WordPress pages on NotePad++

I am implementing multiple pages on a website. I am using FTP with Notepad++ to edit pages and I am using WordPress. I have multiple pages show on the Wordpress/Version Press,which I can edit through WordPress. But I cannot find those pages on NotePad++. I can only find multiple index.php, index.html pages. Those pages work fine, but I cannot find other pages like an about.php, login.php page etc.
Do I need to manually add those pages to NotePad++ or do I need to change the setting between WordPress and NotePad++?
WordPress (like most CMSs) stores page content in the mySQL database, not as PHP/HTML/etc. Therefore you cannot modify page content via FTP. If you need to code things that the CMS will not allow, you have two options:
1- Install a snippet or code editor plugin. These save your script in a Basecode format so that WordPress doesn't try to mess with it. This is the recommended method for minor issues such as injecting a few lines of PHP into a page.
2- Create a custom Plugin. These can be modified via FTP because they are saved as files in your plugins folder, not in your database. These are best if you have a specific application you need to write for your site.
3- Create a Child Theme. This is similar to custom plugins, but it is better if you need to change theme functionality on a global scope. Recommended making major alterations to your theme's header/footer/etc.

Joomla - How to apply template changes to pages using the changed template?

An application that I need to work on is running on Joomla! 2.5.8. For the life of me, I cannot find a way to edit the main file (index.php) of a template and see those changes on the page using the template.
How do I do this?
You can do this in the Joomla backend.
Go to Extensions >> Template Manager
Click on the Templates tab
Click on TEMPLATE_NAME Details and Files
Then on the left hand side, click on Edit main page template.
This will open a page allowing you to edit the index.php file for you template. Do note though that this is to edit your template and not extensions.
Hope this helps

How to Include WordPress Header and Footer in non-WordPress php file

I have a WordPress site but its Registration Page (which is integrated with PayPal) is not part of the WordPress site (Some other developer is doing this and it's in PHP). Now the problem is whenever I change some bits in the footer or the header (especially the links), I will need to download this external PHP file, change the links there too and then upload it again.
It's a tedious task and prone to mistakes. They won't let me handle the registration form in WordPress so I'm stuck with this workflow for now.
Can I include my WordPress footer and header within their PHP file so that we are just using the same file?
You can pull wordpress stuffs by doing
require($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');
NOTE in this example the wordpress install is in the document root of the site. If, for example, your wordpress is installed as yourdomain.com/wordpress/ then modify the above code to
require($_SERVER['DOCUMENT_ROOT'].'/wordpress/wp-load.php');
Then you are clear to use wordpress functions and can pull the header like this:
get_header();
And footer:
get_footer();

Understanding Joomla Structure

I am new to Joomla and can't help but notice the difficulty in understanding page structure.
Right now the website has a page for example: domain.com/index.php/aboutustab
So it seems index.php is required to render all pages and the "aboutustab" seems to be an article but i can't find where the content in the aboutustab is being pulled from and how?
I looked into Article manager but the content is not there.
By content i mean all the text that is suppose to show up and etc.
You should start by reading everything in the beginners section of the Joomla docs located here.
What you're seeing is a menu option, not an article. Read the docs, they really do help.
In Joomla 1.6/7/2.5 the index.php is shown if you haven't enabled Joomla! "Search Engine Friendly URLs" option in the SEO Settings panel in the Site tab of the Global Preferences.
In conjunction with using the "Use URL rewriting" (which requires you to enable either the Joomla! .htaccess file on Apache servers or the web.config file on IIS7 servers) these settings remove the index.php from the browsers location bar. Joomla! still passes everything through the index.php but it's not visible to the end user.
The content you're seeing would typically be in an Article but it may not have the same title as that displayed on the website - the title can be over-ridden in several places. The other possibility is that it's in a Custom HTML module, which is essentially a mini article that you can place in module positions.
As for page structures, they are controlled by the active template (a template is a set of php, css, js and image files in a directory, usually of the same name as the template). A template typically provide a core content location (called the component area) and a variety of module positions. Most Joomla! templates support a variety of standard module positions including top, header, footer, copyright, user1...user5 etc.
The page is assembled by pulling together all of these elements (articles, modules, etc) and inserting them into the template.
HTH
Craig

Categories