Black Friday Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

category.php to be changed

Home Forums Support category.php to be changed

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #160912
    Torsten

    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

    #160941
    Tom
    Lead Developer
    Lead Developer

    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 šŸ™‚

    #165319
    Torsten Oelscher

    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

    #165351
    Tom
    Lead Developer
    Lead Developer

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

    #165369
    Torsten Oelscher

    sure I did…
    šŸ˜‰
    do you want me to give you an access to the wordpress installation?
    PM me…

    #165467
    Tom
    Lead Developer
    Lead Developer

    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?

    #165494
    Torsten Oelscher

    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

    #165705
    Tom
    Lead Developer
    Lead Developer

    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?

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.