I installed wordpress into another directory doing a clean install and uploaded 6.4 template, then installed the travel demo settings and voila it worked perfectly. No issues with wp-config, htaccess etc etc.. No server issues whatsoever..
Turns out the problem is with the script to update template from 4.3 to 6.4. Old settings in the DB?
wp options ID 41,42 (template, stylesheet) shows value of Newspaper, yet in the new DB with clean install it shows Newspaper 6.4, if I edit the old name to Newspaper 6.4 the theme breaks.
So how do we fix this? I am not skilled enough to prune out old template code…. What table, field in the DB could use a clean up?
Also..With the clean install, the WP Site URL and Home URL are a match. Currently it is not a match in the site that I’m trying to fix. https, and http are the values… although in the DB the values are both http, so where is that bogus code hiding?
Please help…
Thanks
I installed wordpress into another directory doing a clean install and uploaded 6.4 template, then installed the travel demo settings and voila it worked perfectly. No issues with wp-config, htaccess etc etc.. No server issues whatsoever..
Turns out the problem is with the script to update template from 4.3 to 6.4. Old settings in the DB?
wp options ID 41,42 (template, stylesheet) shows value of Newspaper, yet in the new DB with clean install it shows Newspaper 6.4, if I edit the old name to Newspaper 6.4 the theme breaks.
So how do we fix this? I am not skilled enough to prune out old template code…. What table, field in the DB could use a clean up?
Also..With the clean install, the WP Site URL and Home URL are a match. Currently it is not a match in the site that I’m trying to fix. https, and http are the values… although in the DB the values are both http, so where is that bogus code hiding?
Please help…
Thanks
Same thing is happening to me. I don’t understand Alin’s response. He is just showing us where the code is. I would like to know what is triggering the mismatch. I too have spent lots of time trouble shooting the DB. My values are the same, yet the template status is telling me they are different.
I am concerned, becuase my font is not loading newspaper.woff, which is causing missing social icons.
I’ve spent three hours with my hosting company considering updates to php etc.
Could we please have some concrete answers Alin? Why is it showing as a mismatch when the values are correct in the DB, where is the mismatch hiding?
Thanks so much
So I’ve read for hours and see others with the same problem:
ALin responds with: I have checked your site and you have these errors in the console – http://screencast.com/…..etc Please make sure that you update the theme properly as it seems the theme’s fonts are not found and also check this without any plugins active except of Visual Composer.
Thanks!
Yes I can see the console shows an error as missing font file. But the files are in the correct directory and uploaded as binary. They are not missing.
http://www.mydomain.com/wp-content/themes/Newspaper/images/icons/newspaper.woff
Please detail the fix. Thank you so much
Also have this:
GET
http://www.mydomain.com/wp-content/themes/Newspaper/images/icons/newspaper.woff [HTTP/1.1 404 Not Found 457ms]
But why would that happen on this domain, yet work perfectly on my test domain. I uploaded the same folder… And in Binary too
I’m puzzled.
Ummm, what about using custom field plugin.
https://wordpress.org/plugins/custom-field-suite/
Assign a value to the field within the post.
Call it up using php per plugins instruction.
I’m going to try that for the read more button. i want to assign a price for each post and say buy now for $85, buy now for $100 etc in the same spot as the read more button.
My theory should work.
Thank you so much, that indeed got me pointed in the right direction. Here’s what I did in case anyone else would like buy now buttons in their posts.
I visited http://www.bestcssbuttongenerator.com/#/n8Rgg1tdWz and created my button.
I named my button BenjiButton. Obviously anyone can name it whatever they like.
I generated the following code using the generator. And then inserted it under Theme Panel/YOUR CUSTOM CSS/
.BenjiButton {
-moz-box-shadow:inset 0px 1px 0px 0px #fff6af;
-webkit-box-shadow:inset 0px 1px 0px 0px #fff6af;
box-shadow:inset 0px 1px 0px 0px #fff6af;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffec64), color-stop(1, #ffab23));
background:-moz-linear-gradient(top, #ffec64 5%, #ffab23 100%);
background:-webkit-linear-gradient(top, #ffec64 5%, #ffab23 100%);
background:-o-linear-gradient(top, #ffec64 5%, #ffab23 100%);
background:-ms-linear-gradient(top, #ffec64 5%, #ffab23 100%);
background:linear-gradient(to bottom, #ffec64 5%, #ffab23 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffec64', endColorstr='#ffab23',GradientType=0);
background-color:#ffec64;
-moz-border-radius:42px;
-webkit-border-radius:42px;
border-radius:42px;
border:1px solid #ffaa22;
display:inline-block;
cursor:pointer;
color:#333333;
font-family:arial;
font-size:25px;
font-weight:bold;
padding:10px 37px;
text-decoration:none;
text-shadow:0px 1px 0px #ffee66;
}
.BenjiButton:hover {
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffab23), color-stop(1, #ffec64));
background:-moz-linear-gradient(top, #ffab23 5%, #ffec64 100%);
background:-webkit-linear-gradient(top, #ffab23 5%, #ffec64 100%);
background:-o-linear-gradient(top, #ffab23 5%, #ffec64 100%);
background:-ms-linear-gradient(top, #ffab23 5%, #ffec64 100%);
background:linear-gradient(to bottom, #ffab23 5%, #ffec64 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffab23', endColorstr='#ffec64',GradientType=0);
background-color:#ffab23;
}
.BenjiButton:active {
position:relative;
top:1px;
}
In all my posts at the bottom, I inserted the code:
<p style="text-align: center;"><a title="BUY NOW for $85.99" href="http://www.mywebsitedomain.c0m" rel="nofollow"><span class="BenjiButton">BUY NOW for $85.99</span></a></p>
The result is a great button. Thanks for your help.
-
This reply was modified 11 years by
mboydnv.
I still can’t figure this out. It’s a simple Buy now button at the bottom of the post. I use the above code to make the button. Simple green button. But it’s not converting and I need to juice this up but can’t seem to get the code put in right.
.blog-stack .wpb_button .wpb_green .wpb_size_large2{
font-size: 60px;
}
Nothing works…please help?
I really need to make changes to this button. I’m aware i can get free code for buttons. My question is how do i call it up? For example I just want to make the green button font size bigger..
What would be the correct code to call it up?
Theme Panel/YOUR CUSTOM CSS/
.wpb_size_large2 {
font: bold 50px Sans-Serif;
}
or
.wpb_button {
font-size: 60px;
}
Thanks
Hi, Thanks for the reply.
I understand that others may be using it, but the “off” feature doesn’t work. I have the box selected as off and the code shows up in the source on page view. So i manually removed the code.
Also Google does not support authorship anymore, so not sure why anyone would want to use it?
Nonetheless, it would be great if the “off” feature really worked so I do not have to remove it everytime there is an update.
Please?
=)
The panel is off. It still appears. So i took your suggestion and removed it in the code. That worked perfectly. Please be so kind as to remove this in next update.
Thank you so much!
-
This reply was modified 11 years by
mboydnv.
I would to have as many errors disappear as possible. Do you know what file and line I can make a quick edit in, to relieve those errors?
Thanks so much.
Yes the code is pasted in Advanced CSS/ Ipad Portrait.
Could you please make any suggestions on the css code? Please?
Thank you
I just viewed the newspaper demo (http://demo.tagdiv.com/newspaper/), and noticed the banner for the desktop is 728 x 90.
When viewing it on ipad portrait mode I see that it is 468 x 60.
My problem is that I have not put in the 468 x 60 code.
I assume this is the correct code:
<div class="td-visible-desktop">

</div>
<div class="td-visible-tablet-l">

</div>
<div class="td-visible-tablet-tp">

</div>
<div class="td-visible-phone">

</div>
And that code goes in ads/header ad ?
Thank you Emil!
I dropped the following code into the post:
<div class="wrapper">
<div class="ribbon-wrapper-green"><div class="ribbon-green">$85.99</div></div>
</div>
I also only used this part of the code:
.ribbon-wrapper-green {
width: 85px;
height: 88px;
overflow: hidden;
position: absolute;
top: 52px;
right: -2px;
}
.ribbon-green {
font: bold 15px Sans-Serif;
color: #333;
.ribbon-green {
font: bold 15px Sans-Serif;
color: #333;
text-align: center;
text-shadow: rgba(255,255,255,0.5) 0px 1px 0px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
position: relative;
padding: 7px 0;
left: -5px;
top: 15px;
width: 120px;
background-color: #BFDC7A;
background-image: -webkit-gradient(linear, left top, left bottom, from(#BFDC7A), to(#8EBF45));
background-image: -webkit-linear-gradient(top, #BFDC7A, #8EBF45);
background-image: -moz-linear-gradient(top, #BFDC7A, #8EBF45);
background-image: -ms-linear-gradient(top, #BFDC7A, #8EBF45);
background-image: -o-linear-gradient(top, #BFDC7A, #8EBF45);
color: #6a6340;
-webkit-box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
}
.ribbon-green:before, .ribbon-green:after {
content: "";
border-top: 3px solid #6e8900;
border-left: 3px solid transparent;
border-right: 3px solid transparent;
position:absolute;
bottom: -3px;
}
.ribbon-green:before {
left: 0;
}
.ribbon-green:after {
right: 0;
}
It seems to work. I adjusted the position slightly.
The problem that I have, is that some of the featured images seems to be different sizes? Thus the ribbon seems off on some pics.
Also how can this also be put on the thumbnails?
Thank you
-
This reply was modified 11 years by
mboydnv.
Hello again,
currently I am using the following code at the bottom of a post:
<p style="text-align: center;"><span class="wpb_button wpb_orange wpb_size_large2">BUY NOW for $85.99</span></p>
It is not converting to sales. The button looks too much like a social share button.
How do I add a graphic button of my own making to the css? I would still like to have a text link that says BUY NOW for $85.99 and have the graphic be in background of the link. I understand I will have to noodle with the padding maybe to make sure it is centered correctly.
What file? Any code is always appreciated.
Thank you so much!
OMG!
What is going on here?
Just did a site search in google and noticed a bunch of these pages/posts have been indexed. How is this possible?
I’m using Yoast. And have my permalinks done right, why are these showing up in the engine?
http://www.mydomain.com/td_d_slug_4/page/4/
http://www.mydomain.com/td_d_slug_5/
and many others, they shouldn’t be published…. they are not in the ste map..
please what is going on? If this is demo post content how is it being spidered? when it is not published?
NOTE: looks like I left some of the pages demo content published, that i can fix..but where are the other posts slugs coming from? I don’t see any demo post content?
thank you
-
This reply was modified 11 years by
mboydnv.
Had to remove the code and put it in the footer file. I think it would be better if the template did NOT place javascript tags, But was simply a place holder for any code that we want to execute. This way I don’t have to keep copying the code to every footer file for every template update.
Not all code starts and ends with those javasript tags. I’m using Statcounter and Post Affiliate pro and those built in javascript tags in the functions file are messing it up.
=)
Quick question, what if I need to paste two different javascripts in there? Do i remove the opening tag and closing tag for each script?
Thank you. I am using Sales Tracking code for an affiliate program, and I paste the code within custom javascripts section. I have analaytics going in the analytics section.
I’ll try my tracking without the duplicate tags. The strong tags was just me emphasizing within my post to you.
Thanks so much for your support.
FINAL UPDATE:
I decided to delete the code from the htaccess file for hotlinking protection.
I read this article and I don’t want to have any troubles with Google:
https://blog.serps.com/google-not-provided-image-hotlinking-nofollow-link-building/
All fixed.
# BLOCK HOTLINKING TO IMAGES
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?facebook.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?pinterest.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?twitter.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yahoo.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?msn.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?bing.com/.*$ [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ http://i.imgur.com/g7ptdBB.png [NC,R,L]
# END BLOCK HOTLINKING TO IMAGES
Now all the share buttons work great and no one can steal my images either.
You can test hotlink protection at:
http://altlab.com/htaccess_tutorial.html
If you would like to make it more complicated by expanding the hotlink protection, this link is good:
http://perishablepress.com/creating-the-ultimate-htaccess-anti-hotlinking-strategy/
Just figured out what was the problem:
I have the following code in my root htaccess file:
# BLOCK HOTLINKING TO IMAGES
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.com/ [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ http://i.imgur.com/g7ptdBB.png [NC,R,L]
# END BLOCK HOTLINKING TO IMAGES
So my question would be how to allow for pinterest, facebook and twitter etc. It is crucial to ban hotlinking for our site.
Thank you so much.
Sorry I can’t get it to work. Also I don’t understand your instructions why add a class below the code?. I added the tag [vc_button rel="nofollow" title=" and that doesn’t work when viewing source.
Here is my code:
<p style="text-align: center;">[vc_button title="CLICK HERE TO BUY NOW FOR $99.99" target="_self" color="green" size="size_large2" href="https://www.mydomain.com/secured-booking/m_index.php?id=54"]</p>
adding no follow anywhere doesn’t work. Is there a file in the template somewhere that i can change?
File?
Line?
Code?
Thanks so much
Thank you. But why is there a new Mobile Logo upload in 4.0.2, wont the 300×100 and 600×200 be enough? Do i reference those files for the mobile logo?
Now if we can figure out what is causing the logo troubles (being blocked) on the iphone all will be grand. =)