Don't use button / Custom my template
-
hi ! I would not like to use the button gave by pdf friendly but just need to integrate the link into my template.
Here is the part where i should add it ! How can i just add php code to show the link in ahref ?
<?php if(!empty($show_pdf) and $show_pdf): ?>
<?php if(!empty($car_brochure)): ?>-
<a
href=”<?php echo esc_url(wp_get_attachment_url($car_brochure)); ?>“
class=”car-action-unit stm-brochure”
title=”<?php esc_html_e(‘Download brochure’, ‘motors’); ?>”
download>
<i class=”stm-icon-brochure”></i>
<?php esc_html_e(‘Car brochure’, ‘motors’); ?>
<?php endif; ?>
<?php endif; ?>Thanks 🙂
-
<a
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Don't use button / Custom my template’ is closed to new replies.