-
AuthorPosts
-
November 24, 2015 at 6:13 pm #541839
Hello,
I’m trying to add class for the <article> into the loop for archive page.
But I can’t find witch template it is.Could you tell me ?
Carosch
November 24, 2015 at 10:32 pm #541994Hi carosch!
Try line 87 in the /enfold/includes/loop-index.php file.
Cheers!
ElliottNovember 25, 2015 at 12:48 am #542070Hi Elliott,
I added a class, line 87, but nothing happens
Carosch
November 30, 2015 at 7:57 pm #544770Hey!
can we please have access to your web site, so we can check the issue?
Thanks a lot!Best regards,
BasilisDecember 2, 2015 at 11:39 pm #546171Hello,
in private, the access code
the url to an archive page, to see my problem.
My goal:
add a different class if the archive content belong to a category or another.I made that to replace the first echo
<?php // case #1 : the archive belongs to the parent category 'museecollections' and childs if ( in_category( 'museecollections' ) || in_category( 'le-musee' ) || in_category( 'la-visite' ) || in_category( 'les-objets-emblematiques' ) || in_category( 'equipe' )) { echo "<article class='".implode(" ", get_post_class('blocs-archive-musee post-entry post-entry-type-'.$post_format . " " . $post_class . " ".$with_slider))."' ".avia_markup_helper(array('context' => 'entry','echo'=>false)). ">"; } // case #2 : the archive belongs to the parent category 'espace-pedagogique' and childs elseif ( in_category( 'espace-pedagogique' )) { echo "<article class='".implode(" ", get_post_class('blocs-archive-pedago post-entry post-entry-type-'.$post_format . " " . $post_class . " ".$with_slider))."' ".avia_markup_helper(array('context' => 'entry','echo'=>false)). ">"; } // case #2 : the archive belongs to the parent category 'preparer-sa-visite' and childs elseif ( in_category( 'preparer-sa-visite' )) { echo "<article class='".implode(" ", get_post_class('blocs-archive-visite post-entry post-entry-type-'.$post_format . " " . $post_class . " ".$with_slider))."' ".avia_markup_helper(array('context' => 'entry','echo'=>false)). ">"; } // dans le cas où le post appartient à aucune categories et est donc dans l'agenda else { echo "<article class='".implode(" ", get_post_class('blocs-archive-agenda post-entry post-entry-type-'.$post_format . " " . $post_class . " ".$with_slider))."' ".avia_markup_helper(array('context' => 'entry','echo'=>false)). ">"; } ?>
but nothing I write in loop-index.php make any visual difference.
like if this is not the page witch is use for the archiveCarosch
December 4, 2015 at 5:57 pm #547166Hi,
I try to suppress all the code into includes/loop-index.php
and that change nothing
Is it possible that it is not the includes/loop-index.php that is use in the archive page?carosch
December 9, 2015 at 4:50 am #549449Hey!
Your login is not working for me, can you check it?
Try adding it in like this.
echo "<article class=' here-is-a-test-class ".implode(" ", get_post_class('post-entry post-entry-type-'.$post_format . " " . $post_class . " ".$with_slider))."' ".avia_markup_helper(array('context' => 'entry','echo'=>false)).">";
Regards,
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.