I am currently building a landing page in wordpress. This is a landingpage for a magento website. What i want to do is whenever i open a page through the menu, it should show the contents of that page for a few seconds. then it automatically links to the apropriate page on the magento webshop.
Can anyone tell me if there is a plugin for this or how i can pull this off without a plugin?
Any help would be greatly appreciated
The only way I know to achieve this is via javascript, and even then it's unreliable - nullified as soon as you find a user that has JS disabled. This should get you what you need though: http://www.w3schools.com/jsref/met_win_settimeout.asp
For example:
setTimeout(function(){
self.location = "/magento/home.php";
}, 5000);
would redirect a user to your new page after 5 seconds - just drop it in the wordpress template page of choice.
(It's also my duty to inform you that this kind of behavior is horrendous usability, and may not get the reaction you're expecting from your audience. </lecture>)
Related
I have tried many plugin and tried many times but failed to do.
In the force refresh plugin, I tried but this not worked automatic. If i click to refresh user then it works otherwise it not works.
Can You help me to do the best?
I need entire website all post & page not a single page or post
Use a plugin to (or do so in some other manner) add a header or footer to every page.
In the header or footer use JavaScript to reload the page periodically with the following code.
<script>
setTimeout(location.reload.bind(location), 60000);
</script>
I am new in wordpress world and i am planning to do a small store website, all the functionalities i need are already there in woocommerce, but there is this small functionality i need which is as below:
in the homepage i need to show 3 different services are served from the company and each service will have a button which will show a popup or redirect the user to another page.
the popup or the new page will ask the user to enter his information along with his mobile number so the company could contact him.
and i have chooses this theme https://themebeez.com/demos/?theme=orchid-store
and here is a picture of where exactly the change will be
So my question is what is the fastest way to do that, is there a plugin to do this for me, or i should make the actual functionality myself and edit the theme code also manually?
Thanks.
In the homepage i need to show 3 different services are served from
the company and each service will have a button which will show a
popup or redirect the user to another page.
Basically 3 buttons that got you to another page. That can be easily done with just editing the template. Look the support documentation to see if your theme can be edited by some page builder (mine uses Composer, etc) and just add the "buttons", if not you need to edit the template manually with some HTML. Nothing to complicated, it just HTML, not PHP or JS.
the popup or the new page will ask the user to enter his information
along with his mobile number so the company could contact him.
Blockquote
Please clarify, popup or a new page? If it is a new page, when you create the 3 buttons on the homepage, just connect that to a new page each (in the Admin Panel, New>>Page). That it is easy as just but the <a href> tag. But also, that's just how I would do it in a short time.
So my question is what is the fastest way to do that, is there a
plugin to do this for me, or i should make the actual functionality
myself and edit the theme code also manually?
Asking for plugins is offtopic in SO, also, where is going to go that data? In the database? or is going to be sent to some admin email? Please see the How to Ask
But I think there is exist a lost of plugins to help you with that. You just need some custom fields so Have you tried searching for some? I use one to get in contact with clients which may fulfill your requirements
So I have this problem with this Santu WooCommerce plugin, so this plugin will open an iframe every time someone click the product link, this iframe will open a checkout page from santu.
So the problem I had is I think there are some conflicts on wordpress themes and santu CSS/JS. Here is the screenshot
before I click the product link from santu.
After click the add to cart
what happened after click the santu link
So what I want is to prevent the assets (CSS/JS) from Santu Site affected my website. So I already googled it and found about the iframe sandbox, but when I added the sandbox attributes, it's broken the santu as well.
So is there any solution about this?
maybe some function in WooCommerce that can fix this problem?
Thank you.
Here's the video
Of course, there is needed much more information, example (at least link to that site too) and there might be needed further (and deeper) dig into those files and etc, which can be hardly achieved with this Q/A format.
However, as an ugly alternative (as a temporary solution, if you can't fix it better) is that the add-to-cart JS action should be triggered into the new window-frame (which will be closed automatically) and thus, the initial page's design won't be messed up.
If that's possible, here is phseudo-concept:
clicking on "add-to-cart" triggers window.open( window.location.href + '&xyz')
if(window.location.href.indexOf("&xyz") > -1) then trigger add-to-cart window.
closing that window should trigger window.close();
I am developing application for shopify, which replace login and register links to another links, creating a custom pages. For example when user click to login link? it is not redirect to login page, it is open a popap with login form. Also my app create custom pages. For example people page, where shows list of customers. And also a want to customize product page by adding a new fave button. In people page for each people shows count faves and last three faves product with images.
So my problems is theme layouts. Because each theme have self layout and css. I want to my app support all themes. How can i do it?
Sorry for my bad english. I just learning... ))
You have two options here, http://docs.shopify.com/api/tutorials/application-proxies and http://docs.shopify.com/api/scripttag.
App proxy sounds like the solution for your separate 'peoples' page.
If you want to assume that all themes have a log in link (which they all should but it's completely customizable so it's possible some don't), then you could always do something like this
$("a[href='/account/login']").click(funciont() {// show modal}); This isn't guaranteed to work in all themes but it probably will in most.
in this site, http://www.bitrepository.com/exit-modal-box.html, when you try to leave the page for the first time, a modal is trigered, this is a very well known plugin, its everywhere on the web on wordpress, but I can't find it, I need this exact one because I once saw its backend and it had a ton of options, please help me find it.
Br
Just try Easy Modal. They have a free version too.
Here is a paid plugins.
The WordPress Popup System
Also try this tutorial to do it manually.
MODAL BOX ON PAGE LOAD WITH JQUERY FANCY BOX AND COOKIE PLUGIN