Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / Mise en page catégories images + titres

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

Mise en page catégories images + titres

More
8 years 5 months ago - 8 years 5 months ago #22538 by thefbi
Bonjour,
est-il possible d'aligner les titres des catégories sous ou sur les images.
Actuellement, l'alignement n'est pas top, voir la page : location-entre-particuliers.ch/les-annonces

Frédéric
Last edit: 8 years 5 months ago by thefbi.
More
8 years 5 months ago #22551 by loic
Replied by loic on topic Mise en page catégories images + titres
Bonjour,

Vous êtes libre de créer un override pour la vue list si vous souhaitez modifier l'affichage.

Cordialement.
More
8 years 5 months ago #22562 by thefbi
Replied by thefbi on topic Mise en page catégories images + titres
Bonjour,
oui, je vous remercie, mais la question était plutôt de savoir quel fichier modifier pour y parvenir ?
Je ne suis pas un expert en css, mais je me débrouille...

Cordialement,
Frédéric
More
8 years 5 months ago - 8 years 5 months ago #22566 by thefbi
Replied by thefbi on topic Mise en page catégories images + titres
Bonjour,
j'ai réussi, je poste ici ma solution :

Faire un override de => components => com_adsmanager => views => front => default.php
Pour faire un override : www.stylitek.com/tutoriel-joomla/comment...mla-3-mod-login.html

Dans ce fichier, j'ai modifié les lignes 78 à 88 comme suit :
<div class="span<?php echo $classtype ?>">
                                <div class="fred1">
                                    <div >
                                    <?php 
                                        echo '<a class="image" href="'.$link.'" title="'.htmlspecialchars($row->name).'"><img class="imgcatfred" src="'.$imgsrc.'" alt="'.htmlspecialchars($row->name).'" /></a>';
                                    ?>
 
 
                                    <h2 class="no-margin-top"><a href="<?php echo $link; ?>"  ><?php echo htmlspecialchars($row->name).$numAds; ?></a></h2>
 
                                    <h3>
                            <?php

En fait, j'ai supprimé des styles, et j'ai créé 2 classes css, "fred1" pour mon cadre et "imgcatfred" pour la classe d'image.
J'ai mis ces css dans mon css de template pour faire également de l'override, comme suit :
.fred1 {
	border: 1px solid #DEDEDE;
	border-radius: 10px;
	padding-bottom: 10px;
	padding-top: 10px;
	margin: 10px;
}
 
.imgcatfred {
	margin-left: 30%;
}
 
#adshome h2 {
    margin-top: 5% !important;
}

J'ai donc créé mon cadre avec bordure arrondie dans ma classe "fred1"
J'ai modifié l'alignement de l'image avec le 30% de ma classe imgcatfred
Et pour finir, j'ai ajouté un espace entre le titre et l'image avec un ajout de 5% sur la classe "adshome h2".

Résultat : www.location-entre-particuliers.ch/les-annonces

Voilà, j'espère que cela en aidera quelques uns.

Frédéric
Last edit: 8 years 5 months ago by thefbi.
More
8 years 5 months ago #22583 by loic
Replied by loic on topic Mise en page catégories images + titres
Bonjour,

Merci pour votre solution :)

Cordialement.
The following user(s) said Thank You: thefbi
Moderators: perry
Time to create page: 0.165 seconds
Powered by Kunena Forum