- Posts: 15
- Thank you received: 0
Link Field in Custom Fields
2 years 7 months ago #358882
by pleslie
Link Field in Custom Fields was created by pleslie
-- url of the page with the problem -- :
whatfroggybakes.com.au/
-- HikaShop version -- : 5.0.3
-- Joomla version -- : 5.0.2
-- PHP version -- : 8.2.15
Hi
i want to create a link - some text that is a link on each product page - so that user can click a link to check a chart of information.
I attempted to do this using a Display->Custom Fields
chosing Link Field and then entering the URL and Display Text.
however it displays as per the attached image - it is just showing URL text and Display Text and there is no URL link
see settings - also attached
what am i doing wrong
peter
-- HikaShop version -- : 5.0.3
-- Joomla version -- : 5.0.2
-- PHP version -- : 8.2.15
Hi
i want to create a link - some text that is a link on each product page - so that user can click a link to check a chart of information.
I attempted to do this using a Display->Custom Fields
chosing Link Field and then entering the URL and Display Text.
however it displays as per the attached image - it is just showing URL text and Display Text and there is no URL link
see settings - also attached
what am i doing wrong
peter
Please Log in or Create an account to join the conversation.
2 years 7 months ago #358890
by nicolas
Replied by nicolas on topic Link Field in Custom Fields
Hi,
A custom field of the table "item" is to allow the user to provide information to you, not display display static information to him.
That's why you see the input fields on the product page.
You should either:
- use a custom item field of the type "custom text", where you provide the HTML for the link
- use a custom product field of the type "link", and then you need to provide the URL in each product (if you want different links for different products)
- directly edit the view file product / show_default via the menu Display>Views and add your link where you want it.
A custom field of the table "item" is to allow the user to provide information to you, not display display static information to him.
That's why you see the input fields on the product page.
You should either:
- use a custom item field of the type "custom text", where you provide the HTML for the link
- use a custom product field of the type "link", and then you need to provide the URL in each product (if you want different links for different products)
- directly edit the view file product / show_default via the menu Display>Views and add your link where you want it.
Please Log in or Create an account to join the conversation.
2 years 7 months ago - 2 years 7 months ago #358989
by pleslie
Replied by pleslie on topic Link Field in Custom Fields
So the adding a Product \ Link to customer fields appears to work. But it comes under a heading of Specifications... how do i remove this heading and just have the field only??
Peter
Peter
Last edit: 2 years 7 months ago by nicolas.
Please Log in or Create an account to join the conversation.
2 years 7 months ago - 2 years 7 months ago #359009
by Philip
Replied by Philip on topic Link Field in Custom Fields
Hello,
If you want to remove the label in your frontend page, you can use a custom css, learn more about how to process, here .
in details, your command have to use the "display" command, example :
Where "Your_html_label" is your html class of your element, use your navigator inspector tool to see your Html.
Regards
If you want to remove the label in your frontend page, you can use a custom css, learn more about how to process, here .
in details, your command have to use the "display" command, example :
Code:
.Your_html_label {
display: none;
}
Regards
Last edit: 2 years 7 months ago by Philip.
Please Log in or Create an account to join the conversation.
2 years 7 months ago #359067
by harre
Replied by harre on topic Link Field in Custom Fields
Inspect the HTML output of the product page to ensure that the link markup is being generated correctly. Right-click on the page, select "Inspect" (or a similar option depending on your browser), and navigate to the section where the link should appear. Verify that the <a> tag is present with the correct href attribute.
The following user(s) said Thank You: Philip
Please Log in or Create an account to join the conversation.
Time to create page: 0.211 seconds