Slideshow Management

Only Title URL - Slideshow Management

Only Title URL

by Dead Man » Mon Aug 05, 2024 6:27 pm

This seems to be the CODE that adds the URL link to the TITLE.
I was trying to change code but havent had any luck on attaching the URL LINK to the SLIDE IMAGE as well.
Im trying to attach URL link to image for when one doesn't want to attach a Title or Description for the image.
Seems its hard since the Image is inserted with the

Code: Select all

<div class="slideshow-slides" style="background-image: url('{{ slide.slide_image }}');">

Code: Select all

			<div class="slideshow-slides" style="background-image: url('{{ slide.slide_image }}');">
				{% if slide.slide_title|length > 0 || slide.slide_description|length > 0 %}
				<div class="slideshow-slides-text">
					{% if slide.slide_title|length > 0 %}
					<a class="forumtitle" href="{% if slide.slide_link|length > 0 %}{{ slide.slide_link }}{% else %}#{% endif %}" title="{{ slide.slide_title }}">{{ slide.slide_title }}</a><br />
					{% endif %}
					{{ slide.slide_description }}
				</div>
				{% endif %}
			</div>
User avatar
Dead Man
Registered User
Posts: 312
Joined: Tue Jun 05, 2012 12:35 am

Re: Only Title URL

by huynhbuutam » Tue Aug 06, 2024 4:17 am

Have you tried this:
Find: <div class="slideshow-slides" style="background-image: url('{{ slide.slide_image }}');">
Replace-with: <div class="slideshow-slides" style="background-image: url('{{ slide.slide_image }}');" onclick="location.href='{% if slide.slide_link|length > 0 %}{{ slide.slide_link }}{% else %}#{% endif %}'">
User avatar
huynhbuutam
Registered User
Posts: 39
Joined: Wed Dec 01, 2021 4:15 pm
Location: Viet Nam
Name: Huynh Buu Tam