Skip to content

Tag: wordpress

How do i reference another page in in wordpress theme

I am converting a static an html code to wordpress theme, i want to open another page to open when i click on the anchor tag, how do i go about it. Thanks. Answer In WordPress, links are permalinks: Permalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of web…

WooCommerce shipping fileds required state

I’m using the function below to show / hide the shipping address section of the checkout based on if a customer chooses local pickup or not. It works fine, however some of the fields in the shipping section are required and so the checkout won’t work if local shipping is selected. Is there a way t…

How can I display multiple lines of version.php?

I’m new to PHP code and am trying to find a way to display 3 lines from the version.php file within WordPress without having to download the file; look into it and move on – this is what I have come up with so far, but does not seem to be working. I’m sure I’m doing something wrong her…

Get href on click and redirect with shortcode

I’m working with this idea: get href onclick and redirect with link Because i need a link redirect to another page. My problem is that the second page is dinamic. For it, i use a shortcode. But im not know how i can do for it works. The var yourHTML is not working. Answer You should use event.preventDef…