- This topic has 7 replies, 3 voices, and was last updated 8 years, 3 months ago by Tom.
-
AuthorPosts
-
December 18, 2015 at 10:16 am #160912Torsten
Hi Tom,
I’m using the PlugIn wp-masonry-layout-pro in posts and I’m suposed to change the category.php which doesn’t exist apparently in GeneratePress.
The develeoper of the PlugIn asked me kindly to ask you where to change the code.
(“Hi,
It better if you can ask the theme support and find out where you should edit the file to change category layout.
If there are unable to do so, i can help you. But it will take time for me. As they are developer of this and this can quickly point it out for you.
Thanks”)
The following code, supposed to be found in category.php<?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php /* Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> <?php generate_content_nav( 'nav-below' ); ?>
which exists only in the index.php of the parent theme is supposed to be changed into
<?php echo do_shortcode('[wmls name="name of shortcode" id="n°"]') ?>
but this doesn’t help within the index.php…
can you please direct me to the correct file to be changed?
(as you can see I don’t know anything about php).the point is to keep the layout of http://goo.gl/jLURCj when filtering by categories (image only with text on hover) for example “sammlung ***” as an example category (= “kategorien” in german).
best
TorstenDecember 18, 2015 at 12:59 pm #160941TomLead DeveloperLead DeveloperHi there,
GP uses the archive.php file to deal with categories and other templates.
If you can copy archive.php into your child theme and rename it to category.php to begin modifying it 🙂
January 12, 2016 at 7:45 am #165319Torsten OelscherHi Tom,
happy new year!
it seems as if I depend on you with my category problem.
I did what you told me to and it’s not yet filtering…
The blog is now on the startpage, so above mentioned link is invalid.
If you go to http://goo.gl/LYQnhw and then click on the category “sammlung haubrok” you can see that it still doesn’t filter the category.
any help apprechiated!
best
TorstenJanuary 12, 2016 at 10:09 am #165351TomLead DeveloperLead DeveloperDid you add your own category.php file to your child theme?
January 12, 2016 at 12:02 pm #165369Torsten Oelschersure I did…
😉
do you want me to give you an access to the wordpress installation?
PM me…January 13, 2016 at 12:05 am #165467TomLead DeveloperLead DeveloperThere won’t be much I can do with login details I’m afraid.
Did you copy a file to create your category.php? What did you put in it? I’m seeing a lot of reference to “wpme” – is that a plugin you’re using?
January 13, 2016 at 2:03 am #165494Torsten OelscherHi Tom,
I followed exactly above mentioned steps:
I copied archive.php from generatepress to the child theme and edited the code.
The wpme comes from the plugIn wp-masonry-layout-pro which I’m using for the posts on the startpage (on GitHub: https://goo.gl/iwJQWz).
best
TorstenJanuary 13, 2016 at 11:42 pm #165705TomLead DeveloperLead DeveloperHmm, hard for me to tell what’s going on, but I’m assuming it’s something wrong with the wp-masonry-layout template.
Have you shown the template to the developer of the plugin to make sure it’s set up correctly?
-
AuthorPosts
- You must be logged in to reply to this topic.