Erase unwanted generated links with non responsive images

GK User
Fri Dec 04, 2015 10:00 pm
Hello,
I do not understand how the links below is created and why the layout is so bad ? I found it with google, but I have not created a menu for this link. It seems to be automatic.
http://www.ngpark.fr/component/content/category/38-location-places-parking-pas-cher-aeroport-nantes-atlantique.html
http://www.ngpark.fr/component/tags/tag/13-nantes-atlantique.html
Moreover the images are not responsive at all. They are responsive on the pages where you can find the images though like this link :
http://www.ngpark.fr/localiser-notre-parking-proche-de-l-aeroport-de-nantes.html
How can I get rid of the links ?

Regards
Kris
User avatar
Expert Boarder

teitbite
Mon Dec 07, 2015 11:37 am
Hi

For the links it's how joomla creates them if there is no landing pages prepared for them. Landing page is simply a category type page in menu for a category this items are from.

To fix images issue add this to override.css and make sure override is enabled in template settings:

Code: Select all
.itemBody img { max-width: 100%; }
User avatar
Moderator

GK User
Mon Dec 07, 2015 12:28 pm
Great ! thanks, it is much better.
I also modified the position of the text : "Tagged under:" because it was on the left and pushed the first 2 tags (it was not nice).
in override.css i added :
span.tags-label { float: none; }

But I still have the titles that are note nice like in the article. Just have a look at the one :
Accès au parking__Vous venez du nord ou du sud ? Nous vous guidons__
we should not have the __ visible. It should look like on this page :
http://www.ngpark.fr/localiser-notre-pa ... antes.html
Thanks if you have a solution
Regards
Kris
User avatar
Expert Boarder

teitbite
Tue Dec 08, 2015 9:12 pm
Hi

Did the "__" thing to change text for article titles came with template ? I cannot make it in my copy. Anyway I can think of a simple script to remove this lines. Add this to /layout/blocks/head.php

Code: Select all
<script type="text/javascript">
(function($) {
   $(document).ready(function() {
      $('#gkMainbody a').each(function() {
         $(this).html( $(this).html().replace('__',' ').trim() );
      });
   });
})(jQuery)
</script>
User avatar
Moderator

GK User
Wed Dec 09, 2015 9:00 am
Yes it comes with the template, that is the reason why I do not understand why this unwanted page is created without the style we have on other articles.
Is your code only for this page ? or will it affect all the pages of the site ? because "__" is transformed into something nice on other pages like this one (top) : http://www.ngpark.fr/
ideally I would rather like to have all titles of this unwanted page with the "title style"
Regards
Kris
User avatar
Expert Boarder

teitbite
Fri Dec 11, 2015 5:35 pm
Hi

I know this functionality was created for module titles, but could not find article titles using it in our demo.

Anyway my script will work after the transformation provided by template, so it will remove "__" only from elements You are able to see it now.
User avatar
Moderator


cron