Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
July 4, 2017 at 9:55 pm in reply to: Add download link under product image in single product page #330974
I have solved my problem. This did the trick:
$downloads = $product->get_files(); $dlcount = 0; foreach( $downloads as $key => $each_download ) { if ($dlcount == 0) echo '<div class="title-wrap"><h3 class="spb-heading" style="text-transform: uppercase;"><span>Download</span><h3></div>'; echo ' <a style="margin-left: 10px;" href="'.$each_download["file"].'" target="_blank">'.$each_download["name"].'</a><br>'; $dlcount++; } if ($dlcount > 0) echo '<div style="padding-bottom: 50px;"></div>';
Thank you for your help!
July 4, 2017 at 9:28 pm in reply to: Add download link under product image in single product page #330973Thank you very much for your replies!
@Rui Guerreiro: I appreciate your help, however I was talking about the single product’s page.
@David Martin: I appreciate your support.
Could someone help me to find the way to get the download link of the specified product? I am trying to find my way through WordPress, and my personal method would be to execute a SQL query to fetch the download link(which I suppose is categorized as a wp_post entry). However, I know there’s a better and more secure way by using hooks and whatnot.Thank you in advance.
Thank you for taking your time to reply. I have used the suggested plugin, and unfortunately it did not solve my issue. I noticed that by escalating the column size, the pictures get smaller(which is a great first step). However they’re still not the same size. I understand that the images themselves are not equal dimensions, but I was hoping that they would automatically resize to the same dimensions in sections such as Products and Clients. I have attached an example of my problem to this post.
Attachments:
You must be logged in to view attached files.Thank you for your reply, the problem had nothing to do with the theme but with file paths.
It would be great to have help on this. At this point, all I need to know is where is the file location(s) for the clients category so I can edit out the part in the code that does this upon adding new clients.
-
Posted in: We hit Power Elite.