benh2142
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Post Type UI] Merge Two Custom Post Types into New Post TypeHmm I need them as individual CPT’s though as I have a page of posts with freebies, a page for deals and ideally a page for both deals and freebies. I need to present them in the same post stream. Is this possible?
Forum: Plugins
In reply to: [Custom Post Type UI] Merge Two Custom Post Types into New Post TypeHello Michael, to piggyback off this post, if I wanted to do the other option you mentioned:
“Are you wanting to take the posts from the two post types, and just have all the posts share 1 post type instead?”
How would I go about doing this?
Currently I have a custom post called ‘deals’ and another called ‘freebies’. I would like another as a parent called ‘all’ that allows me to use that custom post type to show all posts from both ‘deals’ & ‘freebies’.Thank you.
Forum: Themes and Templates
In reply to: [Astra] Top bar not showing when using ‘Page Headers’oh I actually just found it! theres a checkbox ‘Display Above Header’ which needs to be ticked. bah I had to sleep on this one.
Forum: Themes and Templates
In reply to: [Astra] Top bar not showing when using ‘Page Headers’My licence has expired though, I didnt even use the support before. I have done a ticket anyway but could you answer here aswell please? I think it must be a common question. I’m not sure but it could even be a bug.
Forum: Plugins
In reply to: [LiteSpeed Cache] How do I exclude JS on the home page?Thank you for the quick reply. I have tried but its not working still. I’ve tried adding:
function getTimeRemaining(endtime) {
function getTimeRemaining
getTimeRemainingAnd the same for each function, but its still not showing. Also what about JS in my JS in my functions.php file?
Here is my code:
<script> function getTimeRemaining(endtime) { var t = Date.parse(endtime) - Date.parse(new Date()); var seconds = Math.floor((t / 1000) % 60); var minutes = Math.floor((t / 1000 / 60) % 60); var hours = Math.floor((t / (1000 * 60 * 60)) % 24); var days = Math.floor(t / (1000 * 60 * 60 * 24)); return { 'total': t, 'days': days, 'hours': hours, 'minutes': minutes, 'seconds': seconds }; } function initializeClock(id, endtime) { var clock = document.getElementById(id); var daysSpan = clock.querySelector('.days'); var hoursSpan = clock.querySelector('.hours'); var minutesSpan = clock.querySelector('.minutes'); var secondsSpan = clock.querySelector('.seconds'); function updateClock() { var t = getTimeRemaining(endtime); daysSpan.innerHTML = ('0' + t.days).slice(-2); hoursSpan.innerHTML = ('0' + t.hours).slice(-2); minutesSpan.innerHTML = ('0' + t.minutes).slice(-2); secondsSpan.innerHTML = ('0' + t.seconds).slice(-2); if (t.total <= 0) { document.getElementById("clockdiv").className = "hidden-div"; document.getElementById("timeIsNow").className = "visible-div"; clearInterval(timeinterval); } } updateClock(); var timeinterval = setInterval(updateClock, 1000); } /* var deadline = 'August 29 2021 20:00:00 GMT+01'; */ const deadline = new Date(); deadline.setDate(deadline.getDate() + (7 - deadline.getDay()) % 7) deadline.setHours(20); deadline.setMinutes(0); deadline.setSeconds(0); console.log(deadline.toString()) console.log(getTimeRemaining(deadline)) //var deadline = new Date(Date.parse(new Date()) + 100 * 24 * 60 * 60 * 1000); // sets 15 day countdown initializeClock('clockdiv', deadline); // getTimeRemaining(deadline).minutes; </script>
Forum: Plugins
In reply to: [LiteSpeed Cache] How do I exclude JS on the home page?I also have a small bit of JS in my functions.php file which also breaks when enabling.
Oceanwp got back to me really quick and provided a solution. So for anyone who comes across this:
#mobile-dropdown > nav { display: -webkit-flex; display: flex; flex-direction: column; } div#mobile-menu-search { border-top: none; margin-top: 10px; } ul#menu-main-menu-1 { order: 2; -webkit-order: 2; } ul#menu-top-menu-1 { order: 3; -webkit-order: 3; }
OKXWSCZQ
I had already added the IP’s to ‘Authorized Hosts List’ under the global settings in iTheme security plugin. Are they not being reflected in the htaccess file?
I’ve also tried when disabling the security plugin, to no avail.
Forum: Plugins
In reply to: [LiteSpeed Cache] Page not optimized according to google mobile test.how do you reset to default settings?
Forum: Plugins
In reply to: [LiteSpeed Cache] Can the cache cause woocommerce products be oversold?Ok my issue may have been done due to human error, but I’m still interested if this is possible?
Forum: Plugins
In reply to: [WooCommerce] Stripe not workingNot woocommerce but Avada I suspect. Roll back Avada theme, or try editing the CSS.
Forum: Plugins
In reply to: [Yoast SEO] Product categories as cornerstone content? Good for SEO?ok thank you very much.
hmm is this something you could code? If so could I get a quote please?
Forum: Plugins
In reply to: [WooCommerce Cart Stock Reducer] Reserved Stock in WooCommerce 4.3The products list page is a bit messed up after latest woocommerce update.
- This reply was modified 4 years, 4 months ago by benh2142.
Hello, thank you for getting back to me! I’ll give this a go.