Site logo

Archived topic

category.php to be changed

7 replies · Started by Torsten on December 18, 2015

Viewing posts 1–8 of 8

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
Torsten

Hi 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 :)

Hi 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
Torsten

Did you add your own category.php file to your child theme?

sure I did...
;-)
do you want me to give you an access to the wordpress installation?
PM me...

There 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?

Hi 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
Torsten

Hmm, 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?

This archived topic is closed to new replies.