Hi David,
I'm having difficulties positioning my adverts above the Related Products on my product pages. Here is an example of what I'm referring to: {link saved}
I wonder if you could shed any light on how I can position the ads above the related products. The site is working with the Ramos Theme uCompare.
Many thanks
Justin
Hello Justin and welcome to the forum!
In the distribution template Related Products are output by the file html/related.php. In some templates however, this may be a placeholder (empty) file and the code merged with the main product page output (html/product.php) possibly also containing the original code from html.prices.php.
In other words; product, price comparison and related products all contained in a single file. Looking at the output however, I notice that the Related Products begin with this code:
<div class="row related-row">
So above that would be the point to insert your ad / banner HTML etc. In general, where inserting your own content I would use a separate file e.g. html/ads1.php containing your banner HTML; and call this in as required e.g.
<?php
require("html/ads1.html");
?>
You may want to study the responsive framework used by your theme and ensure that you create the appropriate containing divs with the necessary row / column styles - it looks like you're using Bootstrap so this would be something like;
<div class="row">
<div class="col-md-12">
...your ad HTML here...
</div>
</div>
Cheers,
David.
--
PriceTapestry.com