christopher.amirian
Forum Replies Created
-
Hi there,
I checked and the CSS is still there as I can see on my browser console.
You can use this CSS code to undo what the code in CSS does:
.single-format-standard .fn { text-indent: 0 !important; }
Best regards,
Christopher Amirian
Hi there,
In the style.css file of your theme there is a CSS code that adds the [1] item which you can remove:
.fn:after { content: "[" counter(footnotes) "]"; float: left; text-indent: 0 }
Also inside the same file you have this declaration:
.fn { counter-increment: footnotes; display: inline-block; font-size: smaller; text-indent: -9999999px; vertical-align: super }
The
text-indent: -9999999px;
portion is causing your header title to vanish. If you remove that line it will show ok.Best regards,
Christopher Amirian
Forum: Developing with WordPress
In reply to: Child Theme doesn’t see custom blocksHi there,
I suggest that you go with the create block theme plugin route to create your child theme out of the block theme in question.
For more information click here.
Best regards,
Christopher Amirian
Forum: Fixing WordPress
In reply to: Help needed with Blog pagePerfect! I’m glad that you managed to fix the issue.
Forum: Fixing WordPress
In reply to: Help needed with Blog pageHi there,
Most probably that is because the widgets are created with classic widget editor and now you see the block editor widget section.
You can click the three dot menu item on each item and remove the block altogether. That way you will get rid of the widgets.
Please consider that removing the widgets will not cause the sidebar itself go away. To remove the whole sidebar and make the content section be full width you need to check your theme options, most themes have a section to set the layout for the blog single pages.
Check your theme documentation here for more information.
Alternatively, you can contact their support here.
Best regards,
Christopher Amirian
Forum: Fixing WordPress
In reply to: Help needed with Blog pageHi there,
The top three links come from your theme Chariti that you use.
If you want to remove them from the backend you will need to find the single.php file of the parent theme and copy it to the child theme that you use and then change the PHP code to remove the links there.
Alternatively, you can add the CSS code below to WordPress Dashboard > Appearance > Customize > Additional CSS:
.chariti-blog-info-wrapper { display: none }
The content in the right sidebar can be changed from WordPress Dashboard > Appearance > Widgets.
Bets regards,
Christopher
Forum: Everything else WordPress
In reply to: Import post with featured imagesHi there,
Yes, there are methods available to import posts from one website to another website in WordPress, including importing featured images, publish dates, categories, and other post data. Here are a few approaches you can consider:
- WordPress Import/Export Tool: WordPress provides a built-in import/export functionality that allows you to transfer content between WordPress sites. To use it, go to the WordPress dashboard of the source website and navigate to “Tools” → “Export”. Select the desired content (posts, pages, media, etc.) and export it to an XML file. Then, on the destination website, go to “Tools” → “Import” and choose the WordPress importer. Upload the XML file created earlier and follow the instructions to import the content, including featured images.
- Plugins: There are several plugins available that can assist in importing posts with featured images. One popular option is the “All-in-One WP Migration” plugin. There is also the WP All Import plugin that gives such a feature.
The plugin route is for more advanced use-cases. When using any method, it’s essential to ensure that both the source and destination websites are running compatible versions of WordPress and any relevant plugins or themes. Additionally, it’s a good practice to back up both websites before initiating any content migration to avoid any potential data loss or conflicts.
Best regards,
Christopher Amirian
Forum: Everything else WordPress
In reply to: How do I restrict access to content?The functionality you are describing requires a combination of video player customization and lead capture tools. To the best of my knowledge, there isn’t an out-of-the-box solution for this specific use-case, but you can try to achieve this functionality by combining different tools/plugins. Here’s a general approach to solving this:
- Custom Video Player: You may need a custom video player that supports events. A popular custom video player for WordPress is Video.js. You could use this to display your video and attach an event listener that is triggered after 5 minutes of playback. You might want to hide the video controls to ensure the user cannot just skip ahead.
- Lead Capture / Modal Popup: You will need a way to present the user with a lead capture form after the 5 minutes are up. There are many popup and lead capture plugins for WordPress, such as Popup Maker or Elementor’s Popup Builder, as you are using Elementor Pro.
- Combine Video Player with Lead Capture: You will need some custom JavaScript that ties the video player and the lead capture together. Specifically, you could write a script that listens for the video reaching the 5-minute mark, and when that happens, it triggers the lead capture popup.
- Email Capture and Continue Video: Once the user enters their email, you can use AJAX to store their email without refreshing the page, then programmatically continue the video where it left off or redirect them as needed.
Remember that you should inform users that their email is required to view the full video content beforehand, in accordance with GDPR and other privacy laws.
Here’s a rough idea of what the JavaScript might look like (this is just a starting point and you would need to tailor it to the specific video player and popup plugin you are using):
document.addEventListener('DOMContentLoaded', function() { var videoPlayer = document.getElementById('my-video'); videoPlayer.addEventListener('timeupdate', function() { if (videoPlayer.currentTime >= 300) { // 300 seconds is 5 minutes videoPlayer.pause(); // Trigger your popup here } }); });
Because this approach is somewhat technical, if you are not comfortable with coding, you might consider hiring a developer or working with someone who has experience with WordPress development to help you implement this feature.
Best regards,
Christopher Amirian
Forgot to mention, to make sure the settings are saved in Nginx you need to reload/restart the server:
sudo nginx -s reload
Or:
sudo systemctl restart nginx
These are all I could come up with.
Best regards,
Christopher Amirian
Hi there,
The 403 Forbidden error indicates that the server understands the request, but it refuses to authorize it. There can be a few reasons why this is happening, and here are steps you can take to debug and resolve this issue:
Nginx Configuration: Ensure that your Nginx configuration is correctly set up to handle WordPress pretty permalinks and REST API requests. Make sure that your Nginx server block includes the necessary
location
directives. Example:location / { try_files $uri $uri/ /index.php$is_args$args; }
Click here for more information.
File Permissions: Check the permissions of your WordPress files and directories. Make sure that they are set correctly. Directories should typically be 755, and files should be 644.
Click here for more information.
CORS Headers: If your application is trying to access the REST API from a different domain or subdomain, you might need to set up CORS headers. You can do this by adding the following to your Nginx configuration:
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
Please note that setting the
Access-Control-Allow-Origin
header to*
will allow any site to make requests to your server, so it’s generally safer to replace*
with the specific domain you want to allow.Click here for more information.
WordPress REST API Routes: Ensure that no custom code or plugin is altering or blocking the default WordPress REST API routes.
Click here for more information.
Best regards,
Christopher Amirian
Forum: Fixing WordPress
In reply to: Child Category does not showHi there,
Here are steps you can take to troubleshoot and hopefully resolve the issues:
- Permalinks Structure: Go to your WordPress dashboard, navigate to Settings > Permalinks. Try changing your permalink structure to “Post name” if it’s not already set to that. After making changes, don’t forget to save.
- Flush Rewrite Rules: Sometimes permalink issues occur due to not flushing rewrite rules. You’ve mentioned that you tried saving permalinks; that usually flushes rewrite rules. Just to be sure, go back to Settings > Permalinks and just hit “Save Changes” again without making any changes.
- Slug Conflicts: Make sure there is no slug conflict between posts, pages, tags, or categories. Check if there’s a post or page that might have the same slug as your category. Also, ensure that you don’t have a parent category with the same slug as the child category.
- Check .htaccess: If you have access to your server files, check the .htaccess file to ensure it’s writable and has the correct WordPress mod_rewrite rules. For more information click here.
- Theme/Template Files: The issue might also be with your theme. Ensure that your theme has the necessary template files for displaying category archives (like category.php). Switch to a default WordPress theme temporarily to see if the problem persists.
- Plugin Conflict: Deactivate all plugins to see if this resolves the issue. If it does, reactivate one by one until you find the problematic plugin.
- Reassign Posts: For the second problem, try unassigning and then reassigning posts to the subcategory to see if it refreshes the link between them.
- Check for Special Characters: Make sure that the slugs do not contain special characters, as this might cause issues with URL rewriting.
I strongly suggest that you have a backup of your website before following the steps above to avoid any unpredicted outcomes.
Best regards,
Christopher Amirian
Forum: Everything else WordPress
In reply to: Media Library continuously loadingHi there,
Here are a few possible reasons that comes in mind:
- Check for Plugin Conflicts: Sometimes plugins can cause conflicts. Try deactivating all your plugins, and then reactivate them one by one to see if one of them is causing the issue.
- Switch Themes: Temporarily switch to a default WordPress theme like Twenty Twenty-One. If the media library loads properly, it might be an issue with your current theme.
- Increase Memory Limit: Sometimes the media library can have issues loading if there’s not enough memory. You can try increasing the PHP memory limit. Add this line to your
wp-config.php
file:define( 'WP_MEMORY_LIMIT', '256M' );
. For more information click here. - Check File Permissions: Ensure that the file permissions for the uploads directory are correct. Typically, folders should be 755 and files should be 644. For more information click here.
- Browser Console: Check your browser’s console for any JavaScript errors. If there are errors, they might give you clues as to what is causing the issue. For more information click here.
- Update WordPress: Make sure your WordPress installation, plugins, and themes are all up to date.
Remember to backup your site before making any changes, especially when editing files or changing themes.
Best regards,
Christopher Amirian
Forum: Fixing WordPress
In reply to: Uploading Olympus images lose titlesMy pleasure ??
Perfect ??
Forum: Everything else WordPress
In reply to: Track User ActivitySure thing ??