FeralReason
Forum Replies Created
-
After reviewing this: https://www.wpbeginner.com/plugins/how-to-add-header-and-footer-code-in-wordpress/, it appears that this plugin was probably not intended for what you are trying to do.
Perhaps take a look at this: https://www.ads-software.com/support/topic/plugin-for-adding-ad-code-in-header-space-adsense-leaderboard?replies=4
That may be a better route to explore.
Good luck!
There should be a simple fix to this. We know that your ad is wrapped in a div whose id=”ad-wrapper”. What we don’t know “where” in the cascade to insert the css so that it modifies the #ad-wrapper style.
Since I already am knee-deep in this, I installed the plugin and ran a grep on the entire plug-in folder. The term “ad-wrapper” is in none of this plugin’s files. Therefore, it is either 1) in your code or 2)being introduced into your code from an external source (possibly a script somewhere.)
There is no useful documentation in the plugin files that I can find.
I notice there is an options panel for “Insert Headers and Footers” under settings. Did you paste a script here that contained “ad-wrapper” ?
OK – the “ad-wrapper” div must be generated by the plug-in.
The plugin must have documentation on how you add styling changes. Have you looked on the plugin site?Without info on that, the best I can suggest is adding this in your css:
#ad-wrapper{
margin-left:auto !important;
margin-right:auto !important;
}Notice the addition of “!important”. This may force an over-ride of the current #ad-wrapper styling. (And maybe not…)
Forum: Fixing WordPress
In reply to: How to center a header?OK – the “ad-wrapper” div must be generated by the plug-in.
The plugin must have documentation on how you add styling changes. Have you looked?Without info on that, the best I can suggest is adding this in your css:
#ad-wrapper{
margin-left:auto !important;
margin-right:auto !important;
}Notice the addition of “!important”. This may force an over-ride of the current #ad-wrapper styling. (And maybe not…)
Forum: Fixing WordPress
In reply to: How to center a header?OK. So next best bet is to simply style it directly in the HTML.
In your HTML, find this:
<div id=”ad-wrapper”>
And change it to this:
<div id=”ad-wrapper” style=”margin:0 auto”>
That does the same thing as the margin-left:auto; margin-right:auto;
This is apparently an issue of a corrupted export file (and a possible bug), not a 5.5 vs.5.0 issue. (I re-installed / re-exported with a 5.0 DB and got same results.) Details:
1) WP Migrate DB version: Version 0.5; WP version: 3.8.1; Exported with default options.
2) The exported .sql file begins with css code:
<style type=”text/css”>ul .remote-events{
list-style-type: none;
}
.remote-events li{
list-style-type: none;
}
…etc …
</style>
3) The exported file is truncated at the end, in the middle of “wp_users” (user details changed for safety):
“…
INSERT INTOwp_users
VALUES (5, ‘jdoe’, ‘$P$BUs23VOZuyoxwFGIQmeCFk45E5dh/’, ‘jdoe’, ‘[email protected]’, ”, ‘2013-02-28 20:49:39’, ”, 0, ‘John Doe’) ;
INSERT INTO `wp_us”4) Did a grep for the css and found it (inline) inside of one of my files: “theme-shortcodes.php”. Altho I shouldn’t have put the code there, I am not sure why WP Migrate DB would read the contents of this file…
Once I removed the css, the output SQL looked okay and imported correctly.Sounds like this may be a bug ? …
Forum: Fixing WordPress
In reply to: How to center a header?Unless there is another css rule that overrides it (further down in the css) it can probably be placed anywhere. There may be some comments in the style.css ( /* a comment */ ) which organize it into sections for Header, Content, Footer, etc. If that’s true it would be best to place it in the section that makes the most sense (so you can find it again). Otherwise, just place it anywhere.
Forum: Fixing WordPress
In reply to: Site is just text on every device but the PC i made the site on.Your image paths, css, etc. do not have the right (canonical) domain path. Example: “https://redspectr.com/wp/wp-content/uploads/2014/03/flower-bunch-2-istock1.jpg”, if you add a “www” this image shows up. This is also the reason your css (and probably your js) is not loading. I’ll leave it to others to suggest fix options…
Forum: Fixing WordPress
In reply to: Full-width footerCan you share a URL so we can check it out?
Forum: Fixing WordPress
In reply to: My site loading extremely slow on my computer, 100% loss when pingedAlthough 6.9 seconds is slow, it probably doesn’t explain why you are not able to bring it up on your PC. Before you try to improve site speed, it sounds like you have a puzzling local problem to solve. The next logical step is probably check your local internet provider’s speed with a tool like this: https://speedtest.comcast.net/ then (if too slow) follow up with them. Doesn’t really sound like a WordPress issue.
Forum: Fixing WordPress
In reply to: Site is just text on every device but the PC i made the site on.My best guess is that the images reside on your PC and were not migrated to the host account with the rest of your site. However, although I could look at https://imgur.com, I could not look at the subdomain (https://i.imgur.com) that you referenced above.
Forum: Fixing WordPress
In reply to: My site loading extremely slow on my computer, 100% loss when pingedI would first confirm what others are telling you — that the problem does not exist with the site — by checking your site’s loading profile on a site like https://gtmetrix.com/ (there are other good sites for this too.)
Forum: Fixing WordPress
In reply to: How to center a header?In your style.css, add this:
#ad-wrapper{
margin-left:auto;
margin-right:auto;
}I think that should do it. Tried it out in Firebug on your ad and it worked. (Liked the site. I’m a vegan ??
Solved. Thought I would share…
Background: The blog on this site is in a subdirectory: https://www.mysite.com/blog/. There is an .htaccess file at the https://www.mysite.com level which does canonical rewrites.
Solution: I renamed my .htaccess file to .htaccessOLD, at the mysite level. That allowed me to log into the blog so I could reset permalinks to their old settings. Once I did that I named the file back to .htaccess and now everything works fine.
alchymyth – Excellent! That’s exactly what I needed. Works seamlessly.
Thanks much!