Milimo Emmanuel
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Failed to open stream: No such file or directory inYes, wp-config.php (contains important configuration settings for your WordPress site, such as database connection information, security keys, and other site-specific settings) and wp-load.php (for loading the WordPress environment and preparing it for use. It’s used internally by WordPress to set up various functions and classes needed for your site to run.) files are two different files and do not serve the same purpose.
On the error you are still facing, try to reinstall the core files. Make sure you don’t delete your
wp-content
folder, as that contains your themes, plugins, and uploads. Kindly ensure to follow the right procedure to do this, or you might lose your content.Forum: Fixing WordPress
In reply to: Failed to open stream: No such file or directory inOkay, I believe the update will fix majority of the issues.
Forum: Fixing WordPress
In reply to: Header with Cover Fixed Backgroud movingHello @sanguinedreams
If it behaves well in the editor, then chances of cache are also likely. Try to clear the cache first.
Forum: Fixing WordPress
In reply to: Failed to open stream: No such file or directory inHi @galdikasm,
I will answer one part of the question. You can update WordPress via FTP, check https://developer.www.ads-software.com/advanced-administration/upgrade/ftp/
On the other part, your first error is on functions.php, which means there are corrupted or missing files, which most likely an update might fix. Check if the
functions.php
file exists in the specified directory as you have ftp access.Forum: Developing with WordPress
In reply to: Modify list row actionLet me give it a try,
with PHP,
add_filter( ‘post_row_actions’, ‘modify_list_row_actions’, 10, 2 );
function modify_list_row_actions( $actions, $post ) {
// Check for your post type (e.g., ‘post’).
if ( $post->post_type == ‘post’ ) {add_filter( 'post_row_actions', 'modify_list_row_actions', 10, 2 ); function modify_list_row_actions( $actions, $post ) { // Check for your post type (e.g., 'post'). if ( $post->post_type == 'post' ) { // Build the URL for the "Prezzi" link with a JavaScript function to scroll to the anchor. $url = 'javascript:void(0);'; $anchor_link = '<a href="'.$url.'" class="prezzi-link" data-post-id="'.$post->ID.'">'.esc_html( 'Prezzi' ).'</a>'; // Add the "Prezzi" link. $actions['prezzi'] = $anchor_link; } return $actions; }
Now you can add js, to this. Kindly let me know if the code is working
jQuery(document).ready(function($) {
// Listen for clicks on the “Prezzi” link with the class ‘prezzi-link’.
$(‘.prezzi-link’).click(function() {
// Get the post ID from the ‘data-post-id’ attribute.
var postID = $(this).data(‘post-id’);jQuery(document).ready(function($) { // Listen for clicks on the "Prezzi" link with the class 'prezzi-link'. $('.prezzi-link').click(function() { // Get the post ID from the 'data-post-id' attribute. var postID = $(this).data('post-id'); // Build the anchor link specific to the post and scroll to it. var anchor = '#prezzo_settimana'; var scrollTo = $('#post-' + postID).find(anchor); if (scrollTo.length > 0) { $('html, body').animate({ scrollTop: scrollTo.offset().top }, 1000); // You can adjust the animation speed (in milliseconds). } }); });
In the jQuery code, jQuery is used to scroll to the anchor
#prezzo_settimana
on the post’s table row. this is when the link is clicked.- This reply was modified 1 year, 1 month ago by Milimo Emmanuel.
Forum: Developing with WordPress
In reply to: Modify list row actionIt’s likely because the anchor link is specific to the post’s individual edit page, and it doesn’t work as expected when viewing the post table with all posts. I believe you can modify this by adding JavaScript.
Forum: Installing WordPress
In reply to: wp-config-setup-phpHello @princessdebby1. Wrong credentials is one of the top reasons for this. If the database name, username, password, or hostname are wrong, the website won’t connect to the database and will return “Error establishing database connection”, like on your website. Kindly ensure the credentials used are the same as the one you set in cpanel, or the hosting dashboard of choice when setting up the database. I hope this helps.
Forum: Developing with WordPress
In reply to: Paid Membership ProHello @bpwill82. Kindly try asking this under their main forum on this link
Forum: Developing with WordPress
In reply to: Modify list row actionHello @sacconi, your page link does not work, but I will try as much as possible to help.
I have tried to modify the code:
add_filter( 'post_row_actions', 'modify_list_row_actions', 10, 2 ); function modify_list_row_actions( $actions, $post ) { // Check for your post type (e.g., 'post'). if ( $post->post_type == 'post' ) { // Build your Prezzi link URL with the anchor. $url = admin_url( '/post.php?post=' . $post->ID . '&action=edit#prezzo_settimana' ); // Add the 'Prezzi' link. $actions['prezzi'] = sprintf( '<a href="%s">%s</a>', esc_url( $url ), esc_html( 'Prezzi' ) ); } return $actions; }
If you are using a custom post type, make sure to replace ‘post’ with the correct post type. Let me know if it works!
Forum: Everything else WordPress
In reply to: Advice on creating a product/vendor review websiteHi @mrothword , It is possible to list vendors and rate them. You can use woocommerce to list them and rate them, while disabling prices. More so, there are a lot o plugins that can help you write reviews and even rank them.
Forum: Fixing WordPress
In reply to: change WordPress Address to defaultHi @davydov-denis,
Is the url/bar a subdomain?
Forum: Requests and Feedback
In reply to: Feature request: Version history in menusActually, you can recover your deleted menu. check here
Forum: Networking WordPress
In reply to: How do I make changes on dev server and copy to live?Hello @kingrobb,
It is possible.
check here for the steps: https://blogvault.net/build-new-wordpress-site-while-the-old-site-is-live/
Forum: Fixing WordPress
In reply to: add to cart button not work properly sometimes! in woocommerceHi @alinaj1370,
Have you checked the cart URL to ensure it is the right one?
Forum: Fixing WordPress
In reply to: How to see what fonts look like?Hello @aajax
On the customize option on WordPress, you should be able to select the type of font, and it will update and show how it looks before you click update. However, this depends on the theme you are using. Am not sure if there are plugins for this.
- This reply was modified 1 year, 9 months ago by Milimo Emmanuel.