stirrell42
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Space below headerHello,
I believe that the issue is that there is a margin-top on the following element:
.elementor-element-268b577bThis is the wrapper for your hero section and there is a margin-top of 80 pixels on it. Turning that margin off, I believe, will give you what you are looking for.
Forum: Fixing WordPress
In reply to: Centre Image/AdThat is id media_image-43 so you could use:
#media_image-43 { text-align: center; }To get the ID and classes of an element, you can right-click on it in the browser and choose “Inspect” (or something similar depending on the browser you use). Then you can look at the HTML nearby for the class and ID.
Sincerely,
ScottForum: Fixing WordPress
In reply to: Centre Image/AdHello scenicrim,
If you target the wrapper around the ad image, either by id or a class, you should be able to add a text-align: center to the wrapper and center the image. Here is an example:
#media_image-41 { text-align: center; }or, you could use one of the classes:
mh-home-1 { text-align: center; }Choose the ID or class based on which you think is less likely to change if, for example, you change the ad with another.
If you add this to the Additional CSS in the Customizer (Appearance > Customize > Additional CSS), I believe this will accomplish what you are looking for.
Hope this helps,
ScottForum: Fixing WordPress
In reply to: One Menu Item is Lower than the OthersHello Mark,
I am not sure why exactly, but it looks like it is related to the pseudo after element on the item… which is weird because Chrome’s inspector shows it as being a height of 16 pixels. But, removing the pseudo element did make the height uniform. Specifying the font-size on the ::after element to a smaller size (15 pixels) also fixed the issue. Toggling the font-family on the ::after element from Font Awesome also fixes it… so I feel like it has something to do with how the Font Awesome is being rendered in this case. I found something similar in this discussion on Stack Overflow:
https://stackoverflow.com/questions/53453906/font-icons-1-or-2-pixels-too-high
I hope this is helpful.
Scott
Forum: Fixing WordPress
In reply to: why is my permalink taking me to the wrong page?What I would do is turn on logging in Redirection under Tools > Redirection > Options. Then, go to the page and check the Log in Redirection after. That should give you an idea if the redirect is happening within the plugin.
Forum: Fixing WordPress
In reply to: why is my permalink taking me to the wrong page?Hello,
When I go to the page and look at what is happening in Chrome’s Web Inspector, I see that it is being redirected and receiving a response header:
x-redirect-by: redirectionDo you have the Redirection plugin installed by any chance? I wonder if there might be a rule in there that might be causing this?
Sorry if I am mistaken but I was having the same issue and the snippet above did not work for me. I believe that
$new_chshould be consistently used in the code. For example, instead of$data = curl_exec($ch), it should be:$data = curl_exec($new_ch);And then
$new_chshould be used instead of$chthroughout the rest of the function. I think the issue I was having was that the$new_choption was being changed to allow the self-signed certificate but then the curl command was being run on the unchanged instance.Again, if I am wrong I apologize! I don’t want to cause confusion.
Forum: Fixing WordPress
In reply to: This site can’t be reachedIf it is at HostGator, I believe you would start here:
Forum: Fixing WordPress
In reply to: This site can’t be reachedI doubt that it is on WordPress.com. All of their paid plans have SSL certificates included with them. And I think their free plan doesn’t allow a custom domain like boredomblogging.com to be used. If you log into WordPress.com and click on “My Site” in the upper left, does it show you anything?
FTP stands for File Transfer Protocol. It is a way to access the files of your site that are on the server. That would be a way that you could edit the wp-config.php file, for example. You would need to use an FTP client like Filezilla but I suspect you don’t have the needed information for this.
I see your domain is hostgator for its name servers. Is it possibly hosted through them?
Forum: Fixing WordPress
In reply to: This site can’t be reachedDo you know where the site is hosted? You will usually go to their main site and they will have a login link. Here is an example of SiteGround:
https://login.siteground.com/login?lang=en
I am guessing that you don’t have FTP access to the site?
Forum: Fixing WordPress
In reply to: This site can’t be reachedMost hosting companies like GoDaddy, Site Ground, etc., offer a site panel tool to administer your website. Many of these offer phpMyAdmin to view the database. Do you have access to the account where the site is hosted?
Forum: Fixing WordPress
In reply to: Page Links Showing Blank PagesA blank page usually signifies a fatal PHP error on the backend. Take a look for error_log in your site’s files and see if the particular error is being logged. Looking through this text file should help you pinpoint where the issue is.
I believe that you should be able to wrap the assignment with a check to see if it exists before trying to set a value to it. Try this in your function:
if (! empty($this->parent)) { $this->parent->admin_notices[] = array( 'type' => 'error', 'msg' => '<strong>' . __( 'File Permission Issues', 'pinnacle' ) . '</strong><br/>' . sprintf( __( 'We were unable to modify required files. Please check your permissions, or modify your wp-config.php file to contain your FTP login credentials as <a href="%s" target="_blank">outlined here</a>.', 'pinnacle' ), 'https://codex.ww.wp.xz.cn/Editing_wp-config.php#WordPress_Upgrade_Constants' ), 'id' => 'redux-wp-login', 'dismiss' => false, ); }So you will add if (! empty($this->parent)) { above and a closing } after.
If this is a production site, you probably should also look into suppressing warning messages from being output to the screen. It would make sense to log warnings to a log file but not show these warnings and errors to the general public. Here is an article related to this:
https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/
Hope this helps!
Forum: Fixing WordPress
In reply to: This site can’t be reachedIt looks like you may not have a valid certificate for your site. Try reverting back to http:// using your wp-config.php file:
https://ww.wp.xz.cn/support/article/editing-wp-config-php/#wp_siteurl
Or by changing the siteurl and home options in the wp_options database table to addresses with http://.
Forum: Fixing WordPress
In reply to: H2s and H1s are switchedSorry – I wasn’t even thinking about the implications of if this was a theme that is regularly updated. If that is the case, and you edited the template files directly as I suggested, modifications would be overwritten when you update the theme through the WordPress Dashboard unless making modifications through a child theme.