@angus - I wish I could explain more, but the ads just stopped working one day a couple weeks ago - probably due to an plugin auto-update. I wish I had better introspection into but the logs aren’t there. We worked with Raptive to get them back up and running, which they seems to be doing fine. The biggest finding from Raptive was that I needed to basically turn off CORs on our forum and our blog. After that, they began to work again.
We use Cloudflare as a CDN provider for the blog (WP). It is also running on OpenLiteSpeed server but is not using the OLS CDN (using cloudflare). Caches are busted on any updates/posts/plugin updates.
The code that I am using for the Raptive ads are the following:
if ( function_exists('is_subscribed_to_memberful_plan') && is_subscribed_to_memberful_plan( array('98342-fallcamp2023', '21436-gray-monthly', '21300-white-monthly', '34796-pfb-yearly', '34795-pfb-monthly', '69495-pfb-2021') ) ) {
?>
<script>
adthrive.cmd.push(function() {
adthrive.disableAds();
});
jQuery('body').addClass('logged-in-no-ads');
</script>
<?php
}
}
add_action('wp_footer', 'enqueue_custom_footer_script');
I know it might be a lot, but here is some aged CSS on that we’re using on the child-theme to do some style adjustments. I’m working on cleaning it up:
/*div#mvp-main-nav-top {
display: none;
}
*/
/*.mvp-nav-bot-right-out {
width: 100% !important;
}*/
.mvp-nav-bot-right.left.relative {
float: none !important;
}
.mvp-nav-bot-right-in {
margin-right: 88px;
}
#mvp-main-nav-bot-cont {
background: #1a1a1a !important;
}
li#menu-item-207620 {
top: -4px;
}
/*.menu-image-title-hide {
margin-top: -19px !important;
margin-bottom: -12px !important;
}*/
ul#menu-new-global-menu li:first-child a :not(.sub-menu) {
margin-bottom: -16px !important;
margin-top: 0px !important;
}
/*** To keep the Elite Media... from messing up the page top padding ****/
.adthrive-footer-message {
margin-bottom: 0px !important;
padding-bottom: 16px;
background: black;
}
.adthrive-comscore.adthrive-footer-message {
margin-top: 0px !important;
}
/*AVATAR*/
.account-link img {
width: 35px !important;
height: 35px !important;
border: 2px solid #ddd !important;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
}
.account-link a {
padding: 0px 0px 5px 0px !important;
top: 6px !important;
height: 39px !important;
}
.account-link {
margin-left: 16px !important;
top: -11px;
}
.account-link:hover {
top: -6px;
}
/*li#menu-item-208021:hover {
top: -5px;
}*/
.mvp-nav-the-chamber-link {
content: url("https://pistolsfiringblog.com/wp-content/uploads/2020/01/Chamber-e1580357588365.png");
cursor: pointer;
max-width: 38px;
max-height: 38px;
float: right;
margin-top: 7px;
margin-right: 8px
}
.mvp-nav-menu ul:first-child {
display: inline-block;
position: relative;
padding-left: 8px !important;
float: left !important;
}
.mvp-nav-menu ul li a {
font-size: large;
}
.sub-menu li {
margin-left: 0px !important;
padding-left: 0px !important;
}
.nav-menu-logo-link {
pointer-events: none;
cursor: pointer;
padding: 0;
margin-top: 0px !important;
padding-right: 16px;
}
.nav-menu-logo-link a {
padding-top: 15px !important;
}
a.menu-image-title-hide.menu-image-not-hovered.external {
padding: 0;
/* float: left; */
}
.menu-item a img, img.menu-image-title-after, img.menu-image-title-before, img.menu-image-title-above, img.menu-image-title-below, .menu-image-hover-wrapper .menu-image-title-above {
border: none;
box-shadow: none;
vertical-align: super;
width: 175px;
display: inline;
}
.mvp-nav-bot-right {
width: 50px;
height: 50px;
display: inline-flex;
/*right: 79px;*/
}
.mvp-nav-search-but {
float: left;
}
span.mvp-nav-search-but {
cursor: pointer;
float: left;
font-size: 20px;
line-height: 1;
padding: 15px 15px;
}
.mvp-nav-menu ul li a, #mvp-nav-bot-wrap span.mvp-nav-search-but {
color: white !important;
}
#mvp-nav-bot-wrap .mvp-fly-but-wrap span, #mvp-nav-bot-wrap .mvp-search-but-wrap span {
background: white;
font-size: initial;
}
.textwidget {
margin-bottom: 5px;
background: #ff6600;
padding: 10px;
font-size: 19px;
margin-top: 25px;
}
#mvp-post-content {
width: 100%;
max-width: 1200px;
}
.textwidget a, a:visited {
text-decoration: underline;
}
.mvp-flex-story-text p {
color: #555;
float: left;
font-size: 20px;
font-weight: 300;
line-height: 1.4;
margin-top: 10px;
width: 100%;
}
#mvp-home-widget-wrap .mvp-flex-row .mvp-flex-story-text h2 {
color: #333333;
float: left;
font-size: 1.4rem;
font-weight: 700;
letter-spacing: -.02em;
line-height: 1.1;
width: 100%;
}
.mvp-main-box {
margin: 0 auto;
width: 1200px;
height: 100%;
}
.mvp-widget-ad img {
width: 100%;
max-width: 1200px;
}
#mvp-post-content {
width: 100%;
max-width: 1200px;
}
p a.external, #mvp-content-main p a, .mvp-post-add-main p a {
color: #ff6600 !important;
text-decoration: none !important;
box-shadow: none !important;
}
#mvp-content-main a:visited {
color: #ff6600 !important;
}
h1.mvp-post-title {
font-size: 30px !important;
}
#mvp-content-main ul {
font-family: 'PT Serif', sans-serif !important;
}
#mvp-content-main p a:hover, .mvp-post-add-main p a:hover {
text-decoration: underline !important;
background: none !important;
}
.mvp-feat5-mid-main-text h2 {
color:#222222;
float:left;
font-size:1.4rem;
font-weight:700;
letter-spacing:-0.02em;
line-height:1.2;
width:100%;
}
.mvp-feat5-small-main-text h2 {
color:#222222;
float:left;
font-size:1.3rem;
font-weight:700;
letter-spacing:-0.02em;
line-height:1.2;
width:100%;
}
.mvp-feat5-mid-sub-text h2 {
color:#222222;
float:left;
font-size:1.2rem;
font-weight:700;
letter-spacing:-0.02em;
line-height:1.2;
width:100%;
}
.mvp-blog-story-text h2 {
color:#222222;
float:left;
font-size:1.4rem;
font-weight:700;
letter-spacing:-0.02em;
line-height:1.1;
width:100%;
}
#mvp-home-widget-wrap .mvp-flex-col .mvp-flex-story-text h2 {
font-size:1.4rem;
}
span.mvp-feat1-pop-head {
font-family: 'Oswald', sans-serif;
}
/* Copied from old Pistols Firing Site */
blockquote {
/* border-left-color: #232323 !important;
border-left-style: solid !important;
border-left-width: 6px !important;*/
font-family: inherit !important;
font-style: italic !important;
font-weight: 400 !important;
margin: 0 0 0 15px !important;
padding-left: 3px !important;
line-height: 30px !important;
color: #232323 !important;
position: relative !important;
}
blockquote, q {
quotes: "" "" !important;
}
/* Custom sizes are located in media queries */
#mvp-content-main blockquote p, .mvp-post-add-main blockquote p {
font-style: normal !important;
font-family: 'PT Serif', sans-serif !important;
font-weight: 400 !important;
letter-spacing: -.02em !important;
line-height: 30px !important;
margin: 30px 3% !important;
width: 80% !important;
word-wrap: break-word !important;
}
#mvp-content-main ul li, #mvp-content-main ol li, .mvp-post-add-main ul li, .mvp-post-add-main ol li {
font-family: 'PT Serif', sans-serif !important;
font-weight: 400;
line-height: 30px;
margin-bottom: 5px;
margin-left: 30px !important;
}
/* Remove 'Related Posts' at bottom of Singular Articles. */
.mvp-post-tags {
display: none !important;
}
.mvp-widget-feat1-top-story span.mvp-cd-cat {
color: white !important;
}
#mvp-content-main p {
max-width: 100% !important;
}
/*Table header background*/
#mvp-content-main tbody tr:first-child, .mvp-post-add-main tbody tr:first-child {
background: #ff6600;
text-align: left;
color:white;
}
#mvp-content-main table, .mvp-post-add-main table {
margin-bottom: 25px;
color: #333333;
}
/* Ad Specific Styling */
.widget_recent_comments ul li:last-child, .widget_recent_entries ul li:last-child {
margin-bottom: 30px;
}
/* Menu Styling */
nav.mvp-fly-nav-menu ul li.menu-item-has-children:before{
color:white !important;
}
/* Menu Styling */
nav.mvp-fly-nav-menu ul li.menu-item-has-children:after{
color:white !important;
}
#mvp-content-main {
margin-bottom: 5px !important;
}
nav.mvp-fly-nav-menu ul li:first-child {
display: none;
}
#mvp-content-main blockquote p, .mvp-post-add-main blockquote p {
background: #ffeadc !important;
padding: 14px;
border-radius: 5px;
}
@media screen and (max-width: 999px) {
}
@media only screen and (min-width: 1000px) and (max-width: 1023px) {
.mvp-nav-menu ul li {
display: inline-block;
position: relative;
padding-left: 3px !important;
float: left !important;
}
.mvp-nav-the-chamber-link {
margin-top: 9px !important;
}
}
/* Screen Larger than 1024px */
@media only screen and (min-width: 1000px) {
/* hides top social bar on desktop */
div#mvp-main-nav-top{
display: none !important;
}
.mvp-nav-menu ul {
width: auto;
}
/*Used to keep the custom nav sticky and pretty when scrolling up.*/
.mvp-fixed2 {
-webkit-transform: translate3d(0,70px,0) !important;
-moz-transform: translate3d(0,70px,0) !important;
-ms-transform: translate3d(0,70px,0) !important;
-o-transform: translate3d(0,70px,0) !important;
transform: translate3d(0,70px,0) !important;
}
.chamber-link-small-screen {
display: none;
}
#mvp-content-main p, .mvp-post-add-main p {
font-size: 20px !important;
color: #333333 !important
}
#mvp-content-main blockquote p, .mvp-post-add-main blockquote p {
font-size: 20px !important;
color: #333333 !important;
}
#mvp-content-main ul li, #mvp-content-main ol li, .mvp-post-add-main ul li, .mvp-post-add-main ol li {
font-size: 20px !important;
color: #333333 !important
}
}
/* Screen Smaller than 1024px */
@media only screen and (max-width: 999px) {
.mvp-nav-top-right {
width: 64px !important;
margin-right: -13px;
}
.mvp-nav-top-right .mvp-nav-search-but {
display: none;
padding: 6px 0 7px;
}
.mvp-nav-the-chamber-link {
content: url("https://pistolsfiringblog.com/wp-content/uploads/2020/01/Chamber-e1580357588365.png");
cursor: pointer;
max-width: 30px;
max-height: 30px;
float: right;
margin-top: 0px;
}
#mvp-content-main p, .mvp-post-add-main p {
font-size: 17px !important;
color: #333333 !important
}
#mvp-content-main blockquote p, .mvp-post-add-main blockquote p {
font-size: 17px !important;
color: #333333 !important
}
#mvp-content-main ul li, #mvp-content-main ol li, .mvp-post-add-main ul li, .mvp-post-add-main ol li {
font-size: 20px !important;
line-height: 30px;
color: #333333 !important;
}
.mvp-blog-story-text h2, #mvp-home-widget-wrap .mvp-flex-row .mvp-flex-story-text h2, #mvp-home-widget-wrap .mvp-flex-col .mvp-flex-story-text h2 {
font-size: 1.15rem !important;
line-height: 1.1em !important;
}
span.mvp-cd-cat, span.mvp-cd-date {
font-size: 0.8rem !important;
}
div#comments .comment-content p {
font-size: 17px !important;
}
}
.mvp-feat1-feat-text span.mvp-cd-cat{
color: #ffffff !important;
}
@media screen and (max-width: 479px) {
.mvp-blog-story-text h2, #mvp-home-widget-wrap .mvp-flex-row .mvp-flex-story-text h2, #mvp-home-widget-wrap .mvp-flex-col .mvp-flex-story-text h2 {
font-size: 1.15rem !important;
line-height: 1.1em !important;
}
span.mvp-cd-cat, span.mvp-cd-date {
font-size: 0.8rem !important;
}
div#comments .comment-content p {
font-size: 17px !important;
}
}
@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px) {
#mvp-content-main p {
font-size: 17px !important;
}
div#comments .comment-content p {
font-size: 17px !important;
}
}
.custom-call-to-action {
background: #f6d8cb;
border-radius: 5px;
padding: 16px;
border: 3px solid #f60;
margin-bottom: 8px;
}
.custom-call-to-action p {
color: #333 !important;
}
.custom-call-to-action a:hover {
color: gray !important;
}
/* Discourse Comments Segment */
.discourse-comments-area ~ .comments-area .comments-title {
display: none;
}
#comments {
clear: both;
}
#comments > ol {
border-top: 1px solid #E0E0E0;
padding: 15px 0px;
}
#comments .comment {
display: block;
padding: 10px 0px 30px;
background-color: #FFF;
transition: background-color 1000ms;
}
#comments .comment p {
word-wrap: break-word;
}
#comments .fn {
font-size:16px !important;
}
.comment-metadata {
font-size:16px !important;
margin-top: 5px;
}
article #comments .respond > h3 {
margin-bottom: 5px;
}
#comments-title {
padding-bottom: 20px;
}
h2.discourse-comments-title {
display: none;
}
.comment-content {
clear: left;
padding-top: 1px;
}
.comment-content ol, .comment-content ul {
overflow: auto;
}
.comment-content p {
margin-bottom: 10px;
font-size: 20px!important;
color: #333!important;
line-height: 1.5;
font-family: 'PT Serif', sans-serif;
}
.comment-content > blockquote {
font-style: normal !important;
margin-left: 30px;
border-left: 5px solid #eaf9ff;
padding-left: 10px;
}
.comment-content .quote, .comment-content .onebox {
margin-left: 30px;
margin-top: 15px;
margin-bottom: 10px;
border-left: 5px solid #eaf9ff;
padding-left: 10px;
}
.comment-meta {
color: #808080;
}
.avatar-64 {
margin-bottom: 10px;
}
span.says {
display: none;
}
*/
/* begin legacy WP comments */
li.comment {
list-style: none;
padding: 0px 0px 25px 0;
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
}
section.comments {
margin-bottom: 10px;
margin-top: 25px;
}
section.comments {
margin-bottom: 10px;
}
section.comments ol h2 {
margin-bottom: 20px;
padding-bottom: 20px;
}
.archive .comments.wp h2 {
display: none;
}
.archive .comments.wp {
border: 0;
width: 200px;
float: left;
padding-left: 20px;
}
.comment-content li {
margin-left: 40px;
}
#comments .avatar {
width: 64px;
height: 64px;
float: left;
margin-right: 10px;
border-radius: 50%;
}
#comments .avatar-25 {
width: 32px;
height: 32px;
margin-right: 5px;
border-radius: 50%;
}
#comments h3#reply-title {
display:block !important;
text-align: center !important;
color:#333 !important;
font-size: 20px !important;
line-height: 1 !important;
margin-bottom: 10px !important;
text-transform: uppercase !important;
padding: 5px 10px !important;
text-shadow:none;
}
#comments h3#reply-title a {
color:#ff6600 !important;
text-decoration:underline !important;
} */
/* to hide the tiny avatars */
.comment-reply-title, .more-replies {
display: none;
}
I also need to add that this site has over 27k posts and is close to 10 years old. It has a lot of data in it. This weekend, I am going to update the theme, clean up the css, and make sure we haven’t accidentally crossed any streams.
Y’all are so awesome to look into this. I really appreciate it.