I'm using a theme on a wordpress site that has this url: href='http://fonts.googleapis.com/ (this makes the ssl pages insecure).
I need to change the above link globally to this url: href='//fonts.googleapis.com/ (this link makes the ssl pages secure).
This one link is on all the pages of my website including, the registration page and login page. The content at my website is insecure because of this link and a warning message is stated to visitors, that this website content is not secure and your information could get replaced or hacked.
I was able to change this link in one place in the child theme. Now that one page is secure. I viewed the source and found the insecure link that is coming from the template not the web pages. I used whynopadlock.com which showed me the insecure link. I sent message to support and no answer yet. How do I globally change this one link in wordpress theme? I'm using wordpress version 4.0 and the theme is Evolve Lite. I want to keep this theme if I can fix the problem. I'm a newbie and I know very little php.
I had the same problem when changing adding SSL encription, I had to:
grep -rnw '[WordPress PATH]' -e 'http://fonts.googleapis.com'
Finding:
[WordPress PATH]/wp-content/plugins/wp-frontpage-news/inc/wp-fpn- main.inc.php:274: $myFontsUrl = 'http://fonts.googleapis.com/css?' .
This helped me find the file I had to change.
King regards!
Looking at the theme it seems that the Google Fonts link is hard coded in two places.
Line 155 of options-framework.php which can be found at evolve/library/functions/options-framework.php
wp_enqueue_style('google-fonts', "http://fonts.googleapis.com/css?family=Oswald:r,b|Cabin:r,b,i");
And also line 98 of functions.php found at evolve/library/functions/functions.php
wp_enqueue_style('googlefont', "http://fonts.googleapis.com/css?family=".$font_face_all);
Try changing those over to https or just //fonts.~ as you mention and all should be fine. Bear in mind that if the theme updates it may switch these values back again as they are core theme files looking at the location of them.
Related
I have a client who needs his website edited, he is no longer in contact with the original creator of the site, and it seems that the creator used WordPress to make the website. I've been able to access the page through cPanel but cannot locate the HTML files necessary to do things such as editing text. I have the ability to change images but the owner would like to remove some pages, etc.
There are also tons of PHP files for the WordPress extensions and such, but I know nothing about PHP.
Would I need access to the wp-admin account that designed the page in order to modify the text?
Wordpress stores page content in a database, which is subsequently loaded by a collection of php files. You cannot change the content or looks of a wordpress site by changing html files.
The easiest way to change content is to log in to the wordpress dashboard of the website. If you don't have the password, you can open up phpmyadmin via cpanel, browse to the wordpress database and find the *yourwebsiteinitials*_users table. In there you can choose one of the accounts that should be there and click edit, then edit the user_pass column, and simply type a new password in value and set function to md5. Then you can go to *yourwebaddress*/wp-login.php in your browser and login with the user you just edited and the new password.
Alternatively you can find posts in the _posts table and change content via phpmyadmin, but it's much easier to do this via the dashboard.
There could be a few things you need to be aware of: and I believe you have a good understanding of WordPress. If not you may want to watch some tutorials about it.
Themes: You need to find out if the previous developer develop with custom template and maybe he hard coded all the text inside themes file which located wp-content/themes/{name of the theme}/ {other file}, in this case, if you are not aware of WordPress theme development or how it structure, I suggest you watch some quick tutorial on it and there are tons.
Yes, wp-admin is the place where you can find all the pages listed or posts or whatever content. By editing page, you easily can change the text or delete the page which not require or add a new page.
Just find what is the way it's coded. then you will able to follow
You can log into the WordPress dashboard from the cPanel, following these steps:
Login to cPanel.
Scroll down to the Softaculous Apps Installer section and click on the WordPress icon:
You will be directed to the WordPress Install tab.
Scroll down to the Current Installations section.
Click on the admin icon to login to the WordPress dashboard without a password:
You will then reach the WordPress admin dashboard- voila!
if you want delete page in WORDPRESS you need to login wordpress and delete from pages and if you need delete custom php pages you need to go to cpanel and public html folder your page name or delete from wordpress go to /public_html/wp-content/themes/active theme name/ and find there page name there extenstion of pages is like pagename.php or pagename.html.
I need to rewrite some code on my client's website that I haven't made. The problem is that it runs on wordpress (w/ a customised theme I guess) that I've absolutely no experience with whatsoever.
Where do I find the source code made by that previous developer? I tried to find it in the "wp-admin" page but I failed :D ... where would you edit website's landing page?
Thanks ;)
Depending if the developer wrote a new theme or edited another theme, and if the lather, wether he did it the right way.
Check out the name of your current active theme and you should find it here:
/path/to/your/wordpress/installation/wp-content/themes
If he altered another theme, there should be another directory named "activeTheme-child". There any changes should be made so you can run updates on the main theme.
Recently, when I view a page in Wordpress Preview mode, it always loads the default template (theme page.php file) whereas when I look at the published page, it's the right template. I have around 10 different templates for my pages. Just keep in mind that I'm not talking about the theme itself, but the Wordpress template structure. I included three pictures. The admin panel one, shows different templates for my page.As shown, I chose Fixed-Width Clean Page. The second picture shows the page in Preview mode.As you can see it includes a sidebar which is included in the default template but not the one that I chose. And the last picture is the Live view of the website which is correct. As you can see the sidebar doesn't exist. I searched all over the internet and did some suggestions, but none of them work (like saving the permalinks again, changing the theme and changing it back again, etc). The only change that I recently made was upgrading to Wordpress 4.7.4 and blocking access to admin panel by ip using .htaccess file (I removed the .htaccess file, but still no luck). Any suggestions would be appreciated.
OK, after some time I figured out what the problem was. The "WP Subtitle" plugin version 2.9, breaks the preview functionality if you have multiple templates. I report the issue to them as well, but posted the answer if somebody came across the same problem. In order to fix the issue temporarily, i commented out the below line (line 74) on the plugin's main file (wp-subtitle.php):
//add_filter( 'the_preview', array( 'WPSubtitle', 'the_preview' ), 10, 2 );
I have a strange problem with my site. It is a wordpress site working for a while now, and our company started some Adwords campaigns to boost views. Google Adwords adds a gclid parameter to the URL when clicked, and the site is loading another template (the default post template) instead of the template for the homepage.
I'd like to know, where to start searching for the faulthy parts? Any ideas?
Thanks!
PS: Not just the gclid parameter does this, but all other fake parameters too. Strange thing is that only the homepage does this, the other pages with structured URL-s are not doing so. The site uses Visual Composer plugin, if it is important. We tried to solve the problem by .htaccess file, but the redirect causes an error in Analytics tracking of Adwords visitors, so it is not a solution.
Finally, we found a solution!
The theme lacked the front-page.php template for the homepage (read more about wordpress template structure!), so I created it with the correct template HTML code according to the correct layout variable values, and it loads just fine. The URL parameters are not affecting the permalink structure anymore, because now we have a template for the homepage too.
This is better than doing hours of research for redirect- or permalink method workarounds...
if everything fails please use template_redirect hook to load any template you want... template_redirect hook
Also you have to send a 200 OK header there if you simply load file and exit.
I inherited some unfinished website from another developer on WordPress 4.2.2 running the Wise Guys theme. On other pages, the Lower Description Bar shows great quotes from people, but on a specific page (the gallery page) it shows these words... Hello world! Please change me in Site Preferences -> This Category/Section -> Lower Description Bar. Obviously it looks ugly.
I am not a great WordPress user myself, I prefer Joomla, but my client is needing his site to work right in WordPress.
I've got a few questions in this regard:
1) How do I tell the Category/Section of the specific page so that I can follow that suggested path above? I don't seem to find a reasonable route; after all there's only one category that doesn't seems to feature anywhere on the pages.
2) When I login to the backend and follow that path (Site Preferences -> etc...) there's little to do or change. Where in the file system could I do a manual edit, if need be? I'd still want to keep the quotes showing on the other pages, even on this particular page if possible.
Check which plugins are activated. The quotes sounds like "Hello Dolly" is activated. You can deactivate it, since it is a default plugin included with the WordPress download.
As for manual edits, all of your changes should take place in your theme, keep in mind that any changes to a third party theme will be overwritten with any updates. So, you should rename the theme to a custom name. Themes are locate in the themes folder "/path/to/your/wordpress/wp-content/themes".