cleancoded
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Can’t login/link broken – HELP!!Have you tried to logged-in there with this URL : http://www.darcilang.com/blog/wp-login.php ?
Forum: Fixing WordPress
In reply to: My menu is suddenly not clickable anymoreIts a CSS issue. Please try with given CSS:
.navbar-nav .dropdown-menu.animated::before { z-index: -9999999999999; }Forum: Fixing WordPress
In reply to: Error message trying to update NextGEN PluginThis error is related to a hosting issue, such as your server running out of resources when trying to make this update. It happens, and it’s possible it’s not even related to your site.
I recommend updating the plugin manually. To do this:
Deactivate the nextgen-gallery plugin on your site.
Download the latest version of the plugin (3.0.16) here, by clicking the blue “Download” button:
https://ww.wp.xz.cn/plugins/nextgen-gallery/
Unzip the file that downloads.
Access the site via FTP, and navigate to root > wp-content > plugins
Find the “nextgen-gallery” folder. Rename it to something like “nextgen-gallery-old” and download that file to your computer. This will allow you to revert to the old version, in case there’s an issue with your site running the latest version.
After you download the -old version, delete it from your website. Then, upload the new version you downloaded from ww.wp.xz.cn. From the backend area, visit the Plugins page and click to Activate the new version of the plugin. Then, visit the site to confirm all the functionality is working as expected.
Here’s a nice step-by-step guide for manually updating a WordPress plugin:
https://www.wpbeginner.com/beginners-guide/how-to-manually-update-wordpress-plugins-via-ftp/
Forum: Fixing WordPress
In reply to: Question form with dropdown answers listThere are many form options for WordPress. If this is the only functionality you need for the forms on your site, I would recommend using Contact Form 7. It’s free and relatively straightforward to use.
From your WordPress dashboard, go to Plugins > Add New. Search for “Contact Form 7,” install the plugin and activate it.
You’ll see a new “Contact” option added to the left navigation bar. Click it and edit the default contact form. You’ll see several labels and form fields, click the “drop-down menu” button to add a dropdown input to your form. Follow the instructions that come up in the modal for adding options. Then click the “Insert Tag” button. Add labels to the form as needed.
Also click on the “Mail” tab to add the notification details you want to use, where you want the emails to be sent, etc., and then click “Save.”
Copy the form shortcode at the top of the page, which looks something like:
[contact-form-7 id="101" title="Contact form"]Then, paste this shortcode on the page where you want your form to display. Click the “Update” button.
Forum: Fixing WordPress
In reply to: Instagram profileAre you referring to the Instagram icons and links on the top of the right sidebar of your homepage?
It appears that the StudioPress “Magazine Pro” theme comes with the “Simple Social Icons” plugin. This plugin adds a widget to your site, I’m guessing you would just need to access the backend area of your site and navigate to Appearance > Widgets, open the “Simple Social Icons” and make edits/remove Instagram and click “Save.”
You must have added your Instagram username to Customizer or theme options, you could probably find that and remove it, which would probably remove the icon and link from your homepage, too.
Forum: Fixing WordPress
In reply to: Missing entries Multi-Step FormI’m assuming you are referring to the WordPress multi-step form plugin, because you said you are using version 1.2.5.
I see there was an update released for this plugin 6 days ago (1.3.0), that resolves a critical security issue; I would recommend updating. This may also address your issue, but if not, you may need to ask the plugin developers directly:
Forum: Fixing WordPress
In reply to: “Insert/edit link” bar flickers in chromeThis seems like a JS issue, probably caused by a theme or plugin conflict.
I would recommend deactivating plugins one at time, refreshing the edit post page after each one, to see if the issue persists.
Same with your theme, if none of the plugins seem to be responsible.
Forum: Fixing WordPress
In reply to: WP Admin loginThe best way to update your user password would be at the database level, if your login and email/forgot password are not working.
Assuming you’re using cpanel/phpmyadmin:
- Access phpmyadmin
- Click on the table
wp_users - Edit the row with your WordPress account username
- In the
user_passfield, change the Function to MD5 and enter your new password in the Value section - Click the “Go” button
Now, return to your login screen and try logging in with your username and new password.
Forum: Fixing WordPress
In reply to: How do I get State and City menu category in PostOh, ok got it. The screenshot shows that someone has added two custom taxonomies to posts: “Cities” and “States.”
To create a custom ‘Cities’ taxonomy to Posts, you would add this to your functions.php file:
function cities_init() { // create a new taxonomy register_taxonomy( 'cities', 'post', array( 'label' => __( 'Cities' ), 'rewrite' => array( 'slug' => 'city' ), 'capabilities' => array( 'assign_terms' => 'edit_guides', 'edit_terms' => 'publish_guides' ) ) ); } add_action( 'init', 'cities_init' );Here is some more information on custom taxonomies:
Forum: Fixing WordPress
In reply to: Contact Form is not workingPlease make sure you have Contact Form 7 installed and activated.
The code
[contact-form-7 404 "Not Found"]is usually a sign that the contact form specified by the shortcode couldn’t be found. Please make sure you are using the correct shortcode.From the WordPress backend, visit Contact > Contact Forms (/wp-admin/admin.php?page=wpcf7) and find the form you want to be using from the list. Click on the shortcode, which will allow you to select and copy the code. Then paste the code on the page (with either the Text or Visual editor) and click the blue “Update” button.
Forum: Fixing WordPress
In reply to: Order emailsYou can edit any of the WooCommerce email templates from the WordPress backend area. After logging in, visit WooCommerce > Settings and click on the Email tab (/wp-admin/admin.php?page=wc-settings&tab=email).
Then click on the email you want to update, which I believe you’re looking for the “New Order” email (/wp-admin/admin.php?page=wc-settings&tab=email§ion=wc_email_new_order).
On this page, you will see instructions for updating this template. Something like:
To override and edit this email template copy woocommerce/templates/emails/admin-new-order.php to your theme folder: domain/woocommerce/emails/admin-new-order.php.
You can copy the template file to your child theme by following the instructions on that page. On the new email template, simply remove:
<p><?php esc_html_e( 'Over to you.', 'woocommerce' ); ?></p>It’s on line 50.
Forum: Fixing WordPress
In reply to: Combine 2 Search forms.You need to modify this Query :
$new_query = " SELECT $wpdb->posts.ID FROM $wpdb->posts WHERE $wpdb->posts.post_status = 'publish' AND (($wpdb->posts.post_title LIKE '%$original_query%') OR ($wpdb->posts.post_content LIKE '%$original_query%') OR ($wpdb->posts.post_title LIKE '%$modified_query%') OR ($wpdb->posts.post_content LIKE '%$modified_query%')) ORDER BY $wpdb->posts.post_date DESC LIMIT 0, 10 ";As you mentioned in your comments : Enter a Keyword here and a City there and it will output every post that’s related to the keyword and related to the city/next to it.
So, you have to edit this query according to your requirements. Check the field name and table in database and modify query according to expected result. Check this given URL, it will helps you to understand the WP Custom Queries : https://codex.ww.wp.xz.cn/Displaying_Posts_Using_a_Custom_Select_QueryForum: Fixing WordPress
In reply to: Download PluginThere are many ways to do this.
Depending on the specific functionality you’re looking for and the measurement and analytics you need available, some of these options may be stronger than others.
I would personally use WooCommerce, and create free, downloadable products with each of the downloadable files you want to provide, and let WC manage the shop display, archives, downloadable product pages, inventory, account creation and management, etc. WooCommerce also provides many extensions to help extend functionality when you decide you want to add some new features to your site.
I’ve also successfully created similar functionality with ‘Easy Digital Downloads.’
Here are some notes (from Kinsta) on a variety of download plugins you may want to review, as well:
Forum: Fixing WordPress
In reply to: preventing emdash autocorrect in the content of postsAdd to your functions.php:
remove_filter( 'the_content', 'wptexturize' );And the same for the_excerpt or the_title (if required).
You can read more about the wptexturize function here:
https://codex.ww.wp.xz.cn/Function_Reference/wptexturize#Notes
Forum: Fixing WordPress
In reply to: Thumbnail – Featured ImageIf you’re using a custom theme, there may be post options available in the Customizer or in a “theme options” menu that allows you to remove it. If not, then you should consider using a child theme, and then customize/edit the post template to remove the featured image.