I am using a wordpress theme and am confused about links to other pages.
there are places where I can add a link to an existing button but I am not sure whether the link should be hardcoded or not.
e.g.
www.mysite/wordpress/?page=123
or
?page=123
Also if I have to hardcode it, should I be using https://??
This is not HTML, its like a textbox where you can add a link for a button, I guess the theme provides it.
Here is an image which shows how you can add a link to a button, it askes for a link, I would want to link to my contact page, what should i enter here?
Apologies this is all new to me.
As i know you can hardcode it. Like in Title
I use this code for
<?php the_title();?><?php the_permalink();?>
it will link to the page according to the title of the page/posts.
hope this helps
Related
enter image description here
Here is the website with the problem as the title.
http://gophilippines.media/itcamp02/
When I try to click the WordPress embed link card, it doesn't do anything.
Does anyone know what's wrong and perhaps some idea to fix?
I also disabled all the plugins yet the link doesn't react...
The element of the link contains an attribute target="_top". This attribute will try to open the linked document in the full body of the window (See this for more info).
You can remove the attribute or change it to another that does the work for you.
I am designing a wordpress site for a friend. He wants the bio text to appear after clicking on necessary image. I noticed this is straight forward with Elementor Pro. I want to keep things free for him at the mo.
I am running the Astra theme with basic Elementor. I also know how to code so if you think this is a custom css job then let me know the work around. (I'm brand new to WP)
Many thanks
Try adding an onclick event to the image and write some java script to add text where you want or may be enable a hidden textarea ??
You can check this link below for reference
How do I add a .click() event to an image?
We have a website developed in Wordpress by a third party. We need to add a java script function and onClick event to an individual page of our website.
The page has a div with some divs that mimic a button. They are just text with anchor tags, inside divs. We are particularly interested in one particular one. (i.e. $2.00 Off Coupon) which when clicked downloads a PDF document. We would also like it to call a function.
In Chrome, when I look at the code for that element, it looks like this (see red circled area):
With in the WordPress admin dashboard, the code for those buttons is not available, as it was custom made by the third-party developer.
e.g.
My Question is, is this code in a template, theme, or page code stored in database? How can I modify this anchor tag to include an onClick event to call the function I need?
Any help to guide me in the right direction would be much appreciated as I am a WordPress Novice.
I think this code located in Page Template file in your WordPress theme.
Try to find file with name page-home.php of something else.
This file should start from this code:
<?php
/*
Template Name: Home
*/
Or try a bad solution to the problem
$('.home-ctas').on('click', 'a[data-emalabel="$2.00 off coupon"]', function(){
// your function
});
I feel kind of stupid asking this but... I have three pages on my website. There is one of them I want to edit. How do I access the code of this page? I need to change the size of a Google Maps I have embedded on the page.
Go edit this page, in the right sidebar look for Template in page attributes box. This page should be using a template, go to your theme folder and look for a php file with the similar name, when you open, it should have the exact template name in the header, that's where you can edit the code of this page assuming that it use a template.
I managed to solve the problem by playing around with some divs in the css.
I am new to Wordpress
I am implementing a custom theme that is derived from the parent theme tewnty twelve.
I want something like bellow:
I am uploading media that will be inserted inside the post. We know that when we click on the post title, it takes us to the full post page. But when i click on the image inside the post, it takes me to the url like this: www.mohin.com/?attachement_id=10 which i don't want. I want the image click takes me to the full post page as the title click does.
Is there anyone who can help me on this issue
Any help is appreciated.
Thanks,
mohin
Yeah it's pretty straightforward. Just select the image in your post editing window, select the hyperlink icon, and paste the URL you want the link to go to. Update and then check. When clicking the image it should go to that link.