Sunny
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Change user role based on total number of items ordered.Hey there,
I think you should replace this part of code:if( $purchases >= 50 && ! in_array( 'bronze_user', $user->roles ) ) { // Remove role $user->remove_role( 'subscriber' ); // Add role $user->add_role( 'bronze_user' ); } if( $purchases >= 100 && ! in_array( 'silver_user', $user->roles ) ) { // Remove role $user->remove_role( 'bronze_user' ); // Add role $user->add_role( 'silver_user' ); } if( $purchases >= 200 && ! in_array( 'gold_user', $user->roles ) ) { // Remove role $user->remove_role( 'silver_user' ); // Add role $user->add_role( 'gold_user' ); }
Hope it does helps.
- This reply was modified 6 years, 3 months ago by Sunny.
Forum: Fixing WordPress
In reply to: Footers – How to create them?Hey there,
You could do it by customizing footer.php in twentysexteen theme. You could use WordPress theme documentation for any help.Forum: Fixing WordPress
In reply to: Custom Social Link IconsHey there,
You want to add social icons in the pages. But WordPress doesn’t have any such built in option.
You can add the custom social icons by adding a plugin. Here is one of those plugin I could have found:
Social Pug
Or you could use this tutorials:
https://en.support.wordpress.com/add-social-media-buttons-to-your-sidebar-or-footer/
https://www.wpbeginner.com/plugins/how-to-add-social-media-icons-to-wordpress-menus/
https://www.wpbeginner.com/plugins/how-to-add-social-media-icons-to-wordpress-menus/Forum: Fixing WordPress
In reply to: Pictures doesn’t loadHey there!
You should ask your theme provider.
You could do it through custom css also. You can add it through theme customizer and then click on css tab. You will get an option to add css. You can paste this css code there:.footer-credits-text{ display: none; }
Forum: Fixing WordPress
In reply to: Page BuilderHey there,
WordPress doesn’t have inbuilt page builder. As you mentioned that you have used it earlier, it must because of theme or plugin you used earlier. So If you want to use page builder, then you may use any theme that supports it or you can use other plugins out there.Forum: Fixing WordPress
In reply to: How to change the colour of my navigation barHi,
You can do it by using custom css if your theme doesn’t provide you customization for colours.
Here is the custom css code which you could use for changing the brown color to black of that active “home” title:-#main-nav .current_page_item > a, #main-nav .current-menu-item > a, #headerwrap a:hover, #footerwrap a:hover{ color: black; }
Thank you
- This reply was modified 7 years, 1 month ago by Sunny.
Forum: Fixing WordPress
In reply to: Header image disappears on Static HomepageHi,
Do you wanna make that text disappear?
You could do it by adding custom css.
Here is the way to add custom css:-
https://www.wpbeginner.com/plugins/how-to-easily-add-custom-css-to-your-wordpress-site/
Here is the custom code you need to add:-.site-branding-text{ display: none; }
- This reply was modified 7 years, 1 month ago by Sunny.
Forum: Fixing WordPress
In reply to: /wp-content/themes/ directory leaked in googleHi jogjayo,
It won’t impact on seo if you disallow theme folder. Because it doesn’t have got anything to do with seo. This would only disallow theme to index that folder, so that it doesn’t show files of that folder while searching anything in the site.Thank you ??
Hi clageyre,
There is a way to do so by many existing wp plugins.
One of the plugin is : Duplicate Title Checker
Here is the link to that:- Duplicate Title Checker
This plugins check that title we are using for new post is unique or not. Right now this plugin is only for post but with minor modification it can be used with custom post types and pages.Thank you ??
Forum: Fixing WordPress
In reply to: Responsive to desktop view manual switch plugin suggestion requestHi Mary,
Here is two of such plugins which you are talking about:-
https://www.ads-software.com/plugins/mobile-smart/
https://www.ads-software.com/plugins/codepeople-theme-switch/Both plugins offer user an ability to change their view manually.
Thank you ??- This reply was modified 7 years, 1 month ago by Sunny.
Forum: Fixing WordPress
In reply to: /wp-content/themes/ directory leaked in googleHi,
It is normal. Your data is in database which can’t be hacked by this way. Moreover, no one can ever see your php code by this too. So, you are safe from all the vulnerabilities.
You can stop google from indexing this folder by editing robots.txt which works as a rule for search engine.
Add this code to that if it already doesn’t exists.User-agent: * Disallow: /wp-content/themes/
Good Luck and keep using wordpress forever ??
Thank you
Forum: Fixing WordPress
In reply to: Not able to customize Theme after installing WordPress 4.8.2Hi,
After looking at other threads of the same topic, I suppose you are also using CKEditor.
The problem is with that plugin because it is outdated. You can disable it and site will work fine.
Here is link to other threads:-
https://www.ads-software.com/support/topic/fatal-error-at-line-3090-issue/
https://www.ads-software.com/support/topic/widget-fatal-error-2/Thank you
- This reply was modified 7 years, 1 month ago by Sunny.
Forum: Fixing WordPress
In reply to: Header image disappears on Static HomepageHi,
You have not yet selected the logo in site identity section.
Once you set it, it would work fine.
Once again, I am sorry for late reply.Thank you
- This reply was modified 7 years, 1 month ago by Sunny.
Forum: Fixing WordPress
In reply to: Header image disappears on Static HomepageHi,
Sorry for late response. ??
Could you make sure sure your site identity setting are same as in the following image:-
I am still looking for the problem.
Thank you.Forum: Fixing WordPress
In reply to: Fix the blank space for sticky sidebarHi,
As much as I can see, that extra space is due to padding done in li element:.genesis-nav-menu a { color: #fff; display: block; font-size: 13px; font-weight: 300; letter-spacing: 2px; padding: 30px 15px; text-transform: uppercase; }
In the code you are using 30 px bottom padding which is resulting in extra space.
If you could make it 7 px padding for bottom, then it would work fine.Thank you ??