Okay
  Public Ticket #1854903
Fix the top menu of the site
Closed

Comments

  • aleksey started the conversation

    Found on your site absolutely strange but amazing template.

    Tell me please, is it possible to fix the menu in it?
    thank

    and 2 more question
    1.As I understand it - the view of the Archive page cannot be changed?
    But is it possible to remove the restriction on the output of the number of posts, to output one hundred - or all?
    I like the look of this page)

    2. how to increase the thickness of the cross (displays the menu) so that it can be better seen

  •  956
    Marc replied

    Hi Aleksey,

    1) you can use additional CSS-Code to fix the menu. The following sample code can be a start:

    @media screen and (min-width: 1200px) {
        #mobile-container {
            width: 100%;
            background: #fff;
            position: fixed;
            z-index: 10;
        }
    }
    

    2) There are several ways to display another symbol. Cocoa uses a Genericon symbol and you can replace it with the following sample code (further adjustments needed):

    @media screen and (min-width: 1200px) {
        a#desktop-open-btn:before {
            content: '\f405';
            font: normal 50px/1 'Genericons';
        }
    }
    

    Please understand that we cannot provide support for individual customizations.

    Best,
    Marc

  • aleksey replied

    Marс, thank you very much

    1 unnoticed question)
    How to display all the materials in the Archive (in two columns)

    https://themes.elmastudio.de/cocoa/archives/
    I want to use the archive page as a site map
    (if it is possible, if not, I hand over the same thing as a manual, but as I wrote, I really like the look of the page with the Archive now)

  •  956
    Marc replied

    Hi Aleksey,

    sorry for missing this question. The following code (please paste it in your child theme's functions.php) should work:

    add_filter('pre_get_posts', 'limit_category_posts');
    function limit_category_posts($query){
        if ($query->is_category) {
            $query->set('posts_per_page', 100);
        }
        return $query;
    }
    

    Please notice that this isn't theme related. In most cases a general WordPress forum can help with this kind of adjustments.

    Best,
    Marc

  • aleksey replied

    thank

    I put the code
    Should NUMBER 30 be changed to NUMBER 100 on the Archive page?

  •  956
    Marc replied

    Hi Aleksey,

    I'm sorry, but I don't understand your question. Can you explain it another way or even with a screenshot?

    Best,
    Marc