WordPress.org

Ready to get started?Download WordPress

Forums

Minimatica
[closed] Remove folded banner in Minimatica (181 posts)

  1. Juliefitz
    Member
    Posted 1 year ago #

    great, I am glad you are on board to help. I hope you can figure it out. I have the ideas but not the knowhow.

    Still struggling with getting rid of my captions, lol... I set the excerpt length to 0 in the settings but its still there. doh!

  2. deepbevel
    Member
    Posted 1 year ago #

    do you want to remove the enire overlay? it looks like that text is not part of the post text, so it's no excerpt. is it part of the title?

    "Private Residential" says "extend or build" under it, but I don't see that in the post content or in the title.. what is that?

  3. Juliefitz
    Member
    Posted 1 year ago #

    yes i want the whole thing gone (its been refered to as a 'caption')

    The text in the caption is the title of the post with the except underneath.... It clashes with my image

    I thought you were suggesting if the excerpt was removed the whole thing would go. To be honest I have asked the question a few times so not sure who-I-asked-what at this point.

  4. deepbevel
    Member
    Posted 1 year ago #

    it's okay, these things aren't always easy to commnicate.
    give me a moment..

  5. deepbevel
    Member
    Posted 1 year ago #

    try this:

    .kwicks .post .entry-container {
     display: none;
    }

    it's hard for me to tell with this one, but if not I'll get it eventually. I'll go to my own site later and it wil be easier to test.

  6. Juliefitz
    Member
    Posted 1 year ago #

    Right well, you would think that looking at my lap top this suggestion had no effect, but having checked my other lap top, this shows the grey box has now gone and the the text is in the top left corner of each post slide.

    I have been having issues with my lap top not showing updates for a couple of days, really messed me up on Monday. Today I tried to align my Maxbuttons horizontally and they look great on my laptop but different on every other device. On my other lap top it looks like there is one big ugly button. Its driving me nuts as I am losing confidence that my laptop is showing me changes as I go along, and as this is all experimental, that is not good!

    I have checked the screen resolutions are the same on both laptops and I have deleted my cache files. I am worried that I am not actually seeing the true site as I am working.

  7. deepbevel
    Member
    Posted 1 year ago #

    could also be the browser, I know we can get rid of it, obviously what I posted only effects the background, not the text. If we can remove the whole thing your laptop issue probably won't be an issue as far as this goes. But I have to run and I'll get back to this as I can.

  8. deepbevel
    Member
    Posted 1 year ago #

    to get rid of the title try

    #slider .post entry-title a {
    display: none;
    }

    to get rid of the caption and title try

    #slider .post entry-title a, #slider .wp-caption {
    display: none;
    }
  9. deepbevel
    Member
    Posted 1 year ago #

    if it's an excerpt, and not a caption,

    #slider .entry-summary, #slider .post entry-title a {
    display: none;
    }
  10. Juliefitz
    Member
    Posted 1 year ago #

    I have tried the first two but as my browser is taking ages to update any changes I am not actually sure if it has worked...

    The background of the caption has now been removed on my lap top display (its has caught up with us from yesterday)

    I could not find a section to replace for;

    #slider .post entry-title a, #slider .wp-caption {
    display: none;
    }

    So I added it under

    #slider .post entry-title a, #slider .wp-caption {
    display: none;
    }

    ????

  11. Juliefitz
    Member
    Posted 1 year ago #

    I have tried the first two but as my browser is taking ages to update any changes I am not actually sure if it has worked...

    The background of the caption has now been removed on my lap top display (its has caught up with us from yesterday)

    I could not find a section to replace for;

    #slider .post entry-title a, #slider .wp-caption {
    display: none;
    }

    So I added it under

    #slider .post entry-title a, #slider .wp-caption {
    display: none;
    }

    ????

    same for

    #slider .entry-summary, #slider .post entry-title a {
    display: none;
    }

    looks like this now;

    #slider .post,
    #slider .post entry-title a {
    display: none;
    }

    #slider .post entry-title a, #slider .wp-caption {
    display: none;
    }

    #slider .entry-summary, #slider .post entry-title a {
    display: none;

    }

  12. Juliefitz
    Member
    Posted 1 year ago #

    I left it over lunch and when I came back my post were missing so I have put it back to how it was before.

    I need to sort out the issue of the delay on my comp first I think.

  13. deepbevel
    Member
    Posted 1 year ago #

    I have a feeling you are changing your original code, don't do that, add all mods at the bottom of the style sheet, they will over ride all the original that comes before.

    I suggest replacing your entire style sheet with default and redo your changes at the bottom.

  14. Juliefitz
    Member
    Posted 1 year ago #

    Thanks, I have already put the default code back in so will try that when i get back onto it.

    I also got a plug-in to dump all the WP cache and think it helped with the delay in updating the site.

    All I need now is the magice link :)

  15. deepbevel
    Member
    Posted 1 year ago #

    I did it!

    <a class="overlay" href="
    
    <?php
    $the_cat = get_the_category();
    $category_name = $the_cat[0]->cat_name;
    $category_link = get_category_link( $the_cat[0]->cat_ID );
    ?>
    <?php echo $category_link ?>" title="<?php echo $category_name ?>"><?php echo $category_name ?>
    "
    </a>

    use the above in loop-slider.php
    instead of :

    <a class="overlay" href="<?php the_permalink(); ?>" rel="bookmark">
    
    </a>

    this will link all posts in the slider to their categories, however if you open categories in the slider, I'm not sure how that will work.

    we may need to modify the code with a conditional so it only works in a category you will create for your "category-posts"

    so the entire code shoudl be:

    <?php if(is_category('your-category-name') ) { ?>			
    
    <a class="overlay" href="
    
    <?php
    $the_cat = get_the_category();
    $category_name = $the_cat[0]->cat_name;
    $category_link = get_category_link( $the_cat[0]->cat_ID );
    ?>
    <?php echo $category_link ?>" title="<?php echo $category_name ?>"><?php echo $category_name ?>
    "
    </a>
    
    <?php } else { ?>
    <a class="overlay" href="<?php the_permalink(); ?>" rel="bookmark"></a>
    <?php } ?>
  16. deepbevel
    Member
    Posted 1 year ago #

    actually, that's no good, because if you put all the category link-posts in a common parent category , I think that's what they'll link to! we need a way to make them link to their child categories.

  17. deepbevel
    Member
    Posted 1 year ago #

    okay:

    <?php if(is_category('your-parent-category-name') ) { ?>
    <a class="overlay"
    <?php
    foreach((get_the_category()) as $childcat) {
    
    echo '<a href="'.get_category_link($childcat->cat_ID).'">';
    echo $childcat->cat_name . '</a>';
    }
    ?>"</a>
    
    <?php } else { ?>
    <a class="overlay" href="<?php the_permalink(); ?>" rel="bookmark"></a>
    <?php } ?>

    However, perhpas it won't matter for your purpose, it could be you want all new posts to appear in the home slider and link to their catgeories..? You'll probably have to try it and see for sure.

  18. deepbevel
    Member
    Posted 1 year ago #

    and finally, you'll need to mod your css, that is if you changed it to accomodate more slides on the home page:

    .home .kwicks .slide {
    width:140px;
    }

    you'll have to do this if the number of posts in your individual categories is less than what you show in the home slider.

  19. deepbevel
    Member
    Posted 1 year ago #

    The issue is not just getting slider posts to link to their categroy pages instead of the single post content, but first getting a post from each catgeory in the slider.. then making it so when the slider is on category archive pages,the slider posts link to their content like normal.

    Seems we have all of the above except a post from each category in the home page slider.
    We'd have to add something like this this to the array somehow

    $categories = get_categories('include=1,2,5');
    foreach($categories as $category) {
    $posts = get_posts('showposts=1&post_status=publish&orderby=rand&cat='. $category->term_id);

    so I'll be workin on that next.

  20. Juliefitz
    Member
    Posted 1 year ago #

    I replaced the first section you suggested, and this worked out and linked each post on the slider to its catagory (Although there is now additional text for the catagory in the slider).

    then your other two suggestions do not start with;

    <a class="overlay" href="

    so I am not 100% confident if I am putting them in the same place exactly (tried one out but nothing happened and I have taken it out again).

    Loop slider php is not that long if its easier to send it???

    http://www.designpush.co.uk

    I put the previous modifications we discussed at the bottom of the style.css but the caption/excerpt text is still there :-s

  21. Juliefitz
    Member
    Posted 1 year ago #

    Current situation;

    On the home page slider there is now a link to the catagory.

    If you use the arrow to the right of the first slider and go to the second slider;

    Each post is opening the slider that it is already on.

    Just so we are clear about what we are doing. I want the first post of the first slider to open the second slider. Then the second post of the first slider to open the third etc.....

    Then on the second/third/forth/fifth sliders, each post on the slider should just open the post itself....

  22. Juliefitz
    Member
    Posted 1 year ago #

    I am getting on with formatting my posts in preparation

  23. deepbevel
    Member
    Posted 1 year ago #

    it's the opening-post-itself I was wondering about, is that part working for you? or does it just keep going back to the category archive?

    otherwise, the issue will be getting a post from each category in the slider. It's your blog page so it's going to get all posts, many of which may be in the same category.

    I'll post a complete template in pastebin when I make some progress.

  24. deepbevel
    Member
    Posted 1 year ago #

    I'm having trouble with the conditionals, The same loop.php is used for the home-blog as well as categories.
    This is why I'm having trouble telling it to only link to cateories if it's the home page.

    all posts go through
    loop.php

    if it's a category archive they go from the loop,
    to category.php

    then, if "gallery" is selected as the category style, the posts go through
    loop-slider.php

    So, I think I may try adding the slider code directly to category.php, and add our category link mod there. That way it won't reference the default loop-slider.php which will still work to open single posts when in a category archive.

    Still, I have to take care of the query, got to get a post from each category in the home slider..

  25. Juliefitz
    Member
    Posted 1 year ago #

    I am glad you know what you are doing because my head would pop!

    What do you mean by opening post?

    When I press any of the posts on the home page slider it goes to a page (not WP page, just saying the word page) with the heading 'Main Sections', which is the name of the catagory. All of the images from the home page slider are shown here. Is this the 'catagory archive'?

  26. deepbevel
    Member
    Posted 1 year ago #

    I think you're talking about the category archive, but it sounds like you have "Blog" selected as the style in theme options. It's a bit confusing though because the home blog page also uses the category archive, but it's all categories, and the home blog and or category archives may use the slider or blog style.. a distinction with not much difference..

    I sort of know what I'm doing, I have to review the template hierarchy, might be best to make another loop-slider.php which links to posts for categories only, let the home page use the regular loop-slider.php but with the modified link to categories.

    i tried adding the loop code to the categories page but I failed, more complicated than I thought.

    So, next I'll try another, seperate loop-slider.php just for categories.

  27. deepbevel
    Member
    Posted 1 year ago #

    by "opening a post" I'm simply refering to wether or not the link displays post content or a category archive. we want the former for posts in the archive, the later for the home blog.

  28. Juliefitz
    Member
    Posted 1 year ago #

    I had the 'Blog Catagory' set as 'Main Sections' in the theme options, so I have now set it to 'none' and the slider menu now just opens itself, like the other sliders.

    ooops sorry, I thought you wrote "Opening Post", not "opening a post"

  29. deepbevel
    Member
    Posted 1 year ago #

    hey, I got the conditional to work with an additional loop-slider.php,
    I called it loop-slider-categories.php to distinguish it.

    this version opens all slider post links as ussual for the respective post.

    So, copy your entire loop-slider.php, rename the file loop-slider-categories.php, then upload it to your minimatica theme folder.

    this will actually be the default loop-slider.php, no changes except the file name.

    Then, in loop-slider.php, change:

    <a class="overlay" href="  <?php the_permalink(); ?>" rel="bookmark"></a>

    to

    <a class="overlay" 	href="
    <?php
    $the_cat = get_the_category();
    $category_name = $the_cat[0]->cat_name;
    $category_link = get_category_link( $the_cat[0]->cat_ID );
    ?>
    <?php echo $category_link ?>"
    </a>

    then, in category.php, change:

    <div id="slider">
    		<?php get_template_part( 'loop', 'slider' ); ?>
    	</div><!-- #slider -->

    to

    <div id="slider">
    		<?php get_template_part( 'loop-slider-categories' ); ?>
    	</div><!-- #slider -->

    if that works, the next step is get the home slider to show one post from each category...

  30. deepbevel
    Member
    Posted 1 year ago #

    Just to explain, when you click on a category link, such as with posts in the home slider (or any category link) it looks for a template called category.php in which to output the archive.

    So, when it finds category.php, it also finds code in category.php telling it to find a template called loop-slider-categories.php, so that's what it finally outputs.

    When you click a post link, it uses the_permalink to link to the post content. We changed that in the original loop-slider.php so it no longer uses the_permalink, but uses new code to link to the respective category.

    Now, we have to query one post from each category in loop-slider.php. And, because of our new slider template, this will not effect post excerpts in the category archive slider. It will still query whatever posts are in the current category.

    get it?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags