David Beja
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Mobile view and make finger respons less responsiveWhy do you need that file? What does it does?
Weren’t you able to debug that file?Forum: Fixing WordPress
In reply to: How to manually add widget to wordpress?You can use the_widget template tag.
For showing recent comments:
<?php the_widget( 'WP_Widget_Recent_Comments' ); ?>
Forum: Fixing WordPress
In reply to: Parent Function not working on Child ThemeIs the template directory correct?
Template line corresponds to the directory name of the parent theme.Forum: Fixing WordPress
In reply to: Post HTML content by emailPost by Email accepts formatted text and some html codes if you send it as rich text/formatted mode, but some html tags are stripped.
Did you try Postie plugin?
Forum: Fixing WordPress
In reply to: Help Setting Up Referral TrackingYou could do that with Affiliate WP by using their hooks.
You could hook to new affiliate hook, and then get the number of referrals of that affiliate and if it was equal to 3 referrals you would send that email.Something like this:
add_action( 'affwp_register_user', 'check_3_referrals', 10, 3 ); add_action( 'affwp_auto_register_user', 'check_3_referrals', 10, 3 ); function check_3_referrals( $affiliate_id = 0, $status = '', $args = array() ) { $referrals = intval( affwp_get_affiliate_referral_count( $affiliate_id ) ); $affiliate_email = affwp_get_affiliate_email( $affiliate_id ); if( $referrals === 3 ) { wp_mail( $affiliate_email, 'The subject', 'The message' ); } }
Forum: Fixing WordPress
In reply to: Same widgets and templates, different resultsok, so on qtmotorbikesandtours on the app-red.css file (inside the theme) you have one extra line at the end of the file with some extra css, and of the rules of that line is this:
.widget-2.widget.text-28.widget_text { float: right; margin-bottom: 0; }
This is what makes the Test 2 link go right.
Anyway, even if you put that line on the other website it won’t work, because this rule is limited to a widget with text-28 class, and on the new website, the widget has another class (these classes are autogenerated) and is text-13 instead.
What you can do is add instead a rule like this:
.widget-2.widget.widget_text { float: right; margin-bottom: 0; }
But if you think it’s too generic just add the specific class of the widget on that site:
.widget-2.widget.text-13.widget_text { float: right; margin-bottom: 0; }
Hope this helps!
Forum: Fixing WordPress
In reply to: Same widgets and templates, different resultsHi,
Can you put here the links of both websites?
Forum: Fixing WordPress
In reply to: Mobile view and make finger respons less responsiveIt seems the problem is on the javascript.
If I disable JS on Chrome, I can scroll without that problem.
Also, I tried to block navigation.min.js file (inside theme) and it seems to also work fine, so it seems it’s something on that file that is triggering that behaviour.Forum: Developing with WordPress
In reply to: Navigate Categories with Prev NextSorry, I didn’t understand what you’re asking for.
So, you want to show the first category with all posts that belongs to it, and when you click on Next/Prev you go to the next/prev Category with all posts listed of that category.Is that it?
Forum: Fixing WordPress
In reply to: Copied WP Install redirects admin to userAnd did you check all rows that have wp_* on it?
You can list them with a query like:
SELECT * FROM
wpbbb_usermetaWHERE
meta_keyLIKE '%wp_%'
or on options:
SELECT * FROM
wpbbb_optionsWHERE
option_nameLIKE '%wp_%'
You can also create a new user directly on database with admin access and use that user to reset your user back to administrator.
You can check here the quickest way to do it with 3 sql queries:
https://www.wpbeginner.com/wp-tutorials/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql/Forum: Fixing WordPress
In reply to: Can the url NOT display the subfolder of which WP is installed?About SEO, if you already have before the article published with that url (domain.com/folder/articlename), yes, that can have impact on SEO quality.
Do you have many articles? You probably need to create some 301 redirect rules (with a plugin or on .htaccess) so that old urls don’t have a bad impact on SEO.About xml sitemaps yes, they should be without /folder. If you are generating the sitemap automatically, and you have changed site url settings to the new url without /folder, sitemap should be updated automatically.
Sorry, I don’t have a way to test it right now, so maybe test it first locally with a dummy site.
Forum: Fixing WordPress
In reply to: Can the url NOT display the subfolder of which WP is installed?You could try adding a .htaccess file to the root with something like this:
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ RewriteCond %{REQUEST_URI} !^/folder/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /folder/$1 RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ RewriteRule ^(/)?$ index.jsp [L] </IfModule>
Where domain.com is your domain, folder is the folder where you have WP and index.jsp would be your java homepage file.
Forum: Developing with WordPress
In reply to: page template code crashing pageCan you add it here the entire code of that template?
Forum: Fixing WordPress
In reply to: Copied WP Install redirects admin to userDid you also changed the prefixes on wp_options and wp_usermeta tables?
Forum: Fixing WordPress
In reply to: Search Form in Archives.phpNo, it should start on page 1.
It could be because you’re using relative urls on form action.
Do you have a link to take a look?