bhawanvirk
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: NO Admin access & website downwhere did you change the address?
Forum: Fixing WordPress
In reply to: valign image to bottom inside a columnYour welcome, now you can increase your html5’s skills bar to 87% 🙂
Forum: Fixing WordPress
In reply to: valign image to bottom inside a columnset
style="display:none"on closing quote’s<img>tag.then add this code right after <div class=”row”>…</div> ending tag
<div style="position: relative;top: -32px;"> <img src="http://www.scottiescotsman.com/wp-content/uploads/2016/10/quote-right.png" class="quote-pic-right-sm" alt="" style=""> </div>- This reply was modified 9 years, 8 months ago by bhawanvirk.
Forum: Fixing WordPress
In reply to: Login IssuesYou can follow the above reply from @macmanx or here’s another way to change your settings.
First you need to know your database name and the table prefix. if you don’t know, here’s a way to find:
(1) Login to your host control panel
(2) Go to file manager and view the source code of file wp-config.php
(3) find the values that i have bolded define(‘DB_NAME’, ‘Your Database Name‘); and $table_prefix = ‘Your Table Prefix‘;Paste your database name and table prefix values in the code below (note: please only replace values that are in bold):
USE Paste Your Database Name Here;
UPDATE Paste Your Table Prefix Here_options SET option_value = “http://www.driplinecoffee.com” WHERE option_name = “siteurl”;
UPDATE Paste Your Table Prefix Here_options SET option_value = “http://www.driplinecoffee.com” WHERE option_name = “home”;Now go back to your host control panel and login to your phpMyAdmin -> then go to sql tab -> then paste the above lines and click go button.
You can now visit your site at http://www.driplinecoffee.com
- This reply was modified 9 years, 8 months ago by bhawanvirk.
- This reply was modified 9 years, 8 months ago by bhawanvirk.
- This reply was modified 9 years, 8 months ago by bhawanvirk.
- This reply was modified 9 years, 8 months ago by bhawanvirk.
Forum: Fixing WordPress
In reply to: how can i control which lang do i haveHere’s your solution if your are trying to add an enquiry tab on your product page which shows a contact form based on your site language. It will show form with id 216 if your site language is set to english, otherwise form with id 217. Replace the code that you have listed above with this.
// let’s add a filter to woocommerce_product_tabs to add our additional tab.. add_filter('woocommerce_product_tabs','woocommerce_product_tabs_contact_form7',10,1); function woocommerce_product_tabs_contact_form7($tabs){ $tabs['contact_form7'] = array( 'title' => __( 'Enquiry', 'woocommerce' ), 'priority' => 20, 'callback' => 'woocommerce_product_contact_form7_tab' ); return $tabs; } // our tab’s callback… function woocommerce_product_contact_form7_tab(){ if (get_locale() == "en_US") { echo do_shortcode('[contact-form-7 id=”216″ title=”Product Form”]'); } else { echo do_shortcode('[contact-form-7 id=”217″ title=”Product Form”]'); } }Forum: Fixing WordPress
In reply to: how can i control which lang do i haveDid you replace the function “woocommerce_product_contact_form7_tab” with the one i provided or did you just added it at the bottom of your functions.php file? Btw what error are you getting? if page is just showing blank then turn on debugging by going to your wp-config.php file and find this piece of code
define('WP_DEBUG', false);and then replace it withdefine('WP_DEBUG', true);Forum: Fixing WordPress
In reply to: Bugged plugin wont delete (sharebar)If you are using any cache plugins then trying clearing your cached files.
Forum: Fixing WordPress
In reply to: Syntax error: Website down. Please help!No worries 🙂
Forum: Fixing WordPress
In reply to: Syntax error: Website down. Please help!no please don’t edit load.php file, just grab the code from here:
https://github.com/WordPress/WordPress/blob/master/wp-includes/load.php
and replace it. I think you have accidentally uploaded old load.php file 🙂
Forum: Fixing WordPress
In reply to: Syntax error: Website down. Please help!it looks like you have replaced your core functions.php file with your theme’s functions.php file. Make sure you’re changing directories in your ftp client when uploading these files.
After fixing the curly brace problem, upload your theme’s function.php file in this directory (wp-content/themes/rosemary/)
and then again download core functions.php file from here:
https://github.com/WordPress/WordPress/blob/master/wp-includes/functions.phpand put that in wp-includes/
Forum: Fixing WordPress
In reply to: Syntax error: Website down. Please help!yes now the core looks fine, just delete that extra curly brace from your themes functions.php file on line 295
Forum: Fixing WordPress
In reply to: Syntax error: Website down. Please help!replace class-wp-error.php too 🙂
https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-error.php
if this works then i would highly recommend you to update your wordpress from admin panel
- This reply was modified 9 years, 8 months ago by bhawanvirk.
Forum: Fixing WordPress
In reply to: Syntax error: Website down. Please help!it looks like the copy of wordpress that you have downloaded is old. Here are links to the current version of load.php and functions.php that you should try:
load.php :
https://github.com/WordPress/WordPress/blob/master/wp-includes/load.phpfunctions.php :
https://github.com/WordPress/WordPress/blob/master/wp-includes/functions.phphit the raw button on both pages and copy paste the code in corresponding files
Forum: Fixing WordPress
In reply to: Syntax error: Website down. Please help!replace load.php in wp-includes folder with the one that you have just downloaded.
Forum: Fixing WordPress
In reply to: Syntax error: Website down. Please help!can you post some of the code you modified?