Affichage de 1 message (sur 1 au total)
  • Auteur
    Messages
  • #185003
    VincentSt67
    Participant
    Points: 12 pts

    Bonjour,<br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />Pour améliorer ma boutique Woocommerce sous wordpress, j’ai fait modifier le fichier du thème archive-product.php, comme ceci :<br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />

    	<?php if ( have_posts() ) : ?>
    			<br><br>
    			<h2 class="titlecategoryspecial">MON TITRE</h2>
    			<p class="paracategoryspecial">MA DESCRIPTION</p>
    			
    			<?php echo do_shortcode("
    "
    ); ?>

    <br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />Cela me permet un meilleur affichage sur ma page boutique, compartimenté en plusieurs blocs personnalisés selon mes différentes catégories, le tout sur la même page.<br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />En faisant ça, j’outre passe l’affichage woocommerce, et je ne peux plus pointer vers une catégorie en particulier avec un widget ou les liens classiques du menu. Tous me ramènent sur la page boutique.<br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />Je cherche donc a intégrer une ancre de lien html sur chaque titre H2 par catégorie de produits et à un emplacement en particulier sur la page (bas, milieu, haut).<br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />J’ai ajouté le classique id=””.<br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />[code=php] <?php if ( have_posts() ) : ?><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><br><br><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><h2 id=”nomdulien” class=”titlecategoryspecial”>MON TITRE<br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><p class=”paracategoryspecial”>MA DESCRIPTION</p><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />Malheureusement, cela n’a pas fonctionné : https://www.monsite.com/boutique/#nomdulien<br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />Quand je fais pointer mon lien html #nomdulien j’atterris bêtement sur ma page boutique.<br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />Quelqu’un aurait une idée ?<br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />Merci d’avance,<br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” /><br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />Cdt,<br style=”box-sizing: inherit; color: #444444; font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif;” />V.

    depanagewp
Affichage de 1 message (sur 1 au total)
  • Vous devez être connecté pour répondre à ce sujet.