Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I would need a little help if I could. I have a store type web site made in wordpress. From anywhere on the site you want to enter the product page you can do it only if you click on the title. I want to make it possible to enter the product page and if you click on the image.
Below I attach the images with the code.
https://airless-consulting.ro/wp-content/uploads/2020/12/imagine_produs.jpg
https://airless-consulting.ro/wp-content/uploads/2020/12/titlu_produs.jpg
Do you have any suggestions?
Why don't you add a link on the image? Try this:
<a href="<?php echo esc_url($link); ?>">
<img src="" alt="" />
</a>
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 months ago.
Improve this question
How to directly download video form the external link like that
https://rr4---sn-4wg7ln7k.googlevideo.com/videoplayback?expire=1659178416&ei=ULnkYojCCteA2LYP6fy9gAY&ip=18.207.249.128&id=o-AH5lc61_k63NQzB0KfAwR3eKkWwyf6UlhiglXm4yeZ1G&itag=244&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C597%2C598&source=youtube&requiressl=yes&spc=lT-KhmC1OQXH6E1Bwoi7FX0xjBgFfGU&vprv=1&mime=video%2Fwebm&ns=VbQMOPVRVjJo8hxCD1PMQ88H&gir=yes&clen=21400428&dur=460.000&lmt=1659122075115614&keepalive=yes&fexp=24001373,24007246&c=MWEB&txp=7319224&n=vuqpLdTQIjRGZJYI&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAKjNSNNnW-Zi3_qeXCI3N6Stx9M1BoTKyXMlU5_xlZMHAiEA_tGiCCCcd37kVTJHmE7AxiJHlSw05UJY_MFHBcNEKpE%3D&rm=sn-p5qe7r7e,sn-uxaxovg23-aixe7l&req_id=e29350f8131ca3ee&ipbypass=yes&redirect_counter=2&cms_redirect=yes&cmsv=e&mh=iR&mip=103.7.79.121&mm=29&mn=sn-4wg7ln7k&ms=rdu&mt=1659156550&mv=m&mvi=4&pl=24&lsparams=ipbypass,mh,mip,mm,mn,ms,mv,mvi,pl&lsig=AG3C_xAwRgIhAJWZ4pMz_cCq37cAARiY6120pKwzb2lMPiKEQa4A-lqXAiEAz-wXlSB2hoxwLu-V3nPL69zGhF0cJ9CxDvMLEuUUvrQ%3D***emphasized text***
Just add your link download attribute in html tag:
<a href="video.mp4" download>
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to generate an embed code for a Donate button on my server so that anytime a user add the code to his/her website the Donate button will show
Publish this code on your website and ask web developers to insert this <div> into their web page html to let their visitor direct to your donation url. replace the link in code below with you donation url.
<div>
<button type="button"><a href="http://www.yourdonationurl.com">Make a Donation</button>
</div>
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I downloaded wordpress plugin bmi-bmr-calculator. The plugin displays menu at the left side and saved history at the bottom.
I want to remove left menu. I check plugin files and found that this method of php is calling BMI link of left menu bar:
<li><a id="bmi" href="#" data-formPath="<?php echo plugins_url( 'includes/bmi_form.php' , __FILE__ ); ?>">BMI</a></li>
When I'll remove the left menu then I must need this link to call BMI calculator page.
How can I convert this link as an simple HTML
Best regards
<li>
<a id="bmi" href="http://yoursite/wp-content/plugins/bmi-bmr-calculator/includes/bmi_form.php">BMI</a>
</li>
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am new in making word press theme. I am trying to call a image from a images folder which is in the theme folder of word press but when I refresh the page then all the page is disappear and nothing is showing even not any php error.
i want to show my logo in the wordpress theme which is like in the image
I think it has to be get_template_directory_uri() instead of get_template_directory_url() (lowercase i instead of lowercase l).
You also can use bloginfo. See: http://codex.wordpress.org/Function_Reference/bloginfo
In your case:
<img src="<?php bloginfo('template_url'); ?>/images/logo.jpg" alt="<?php bloginfo('name'); ?>">
And of course make sure you're image is in the right location.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Currently I have:
Click here
This takes me to the index.php page
How do I change this in order to take me to another page?
Since you guys closed this. I will answer my own question:
The answer:
What you put in the WP_Query post_type = '(POST TYPE HERE)'
You can make a page called:
"single-(POST TYPE HERE).php
So once you click the link. This will take you to the:
"single-(POST TYPE HERE).php page
the_permalink() outputs the URL of the post currently being viewed in the loop. If you wanted to change the destination of the link then replace <?php the_permalink();?>.
Refs:
http://codex.wordpress.org/Function_Reference/the_permalink
http://codex.wordpress.org/The_Loop