A Few Questions

NapitWPTech Theme Support Forums The NewsMag A Few Questions

This topic contains 12 replies, has 2 voices, and was last updated by  Bishal Napit 5 months, 3 weeks ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #207

    jthoke
    Participant

    Bishal,

    First, you have done an amazing job with NewsMag. You’ll be getting a five-star review and some words of support along with it from me. My site is http://cfbsource.com/. I’m almost ready to launch the site, but I had a few questions I was hoping you could help me with:

    1) In the slider and grid slider, is there a way to designate that the grid slider starts with Post #2 in the Daily Links category? I obviously want to do this so the first image in the grid doesn’t copy the slider image.

    2) Can you help me reformat the category pages such as http://cfbsource.com/clemson/? I want to make a simple category page that removes everything (featured imaged, categories, posted on, written by, excerpt, read more and comments image) except for the clickable headline and maybe a simple line between the headlines. Can you help me do this?

    Thank you very much for your help!

    #208

    Bishal Napit
    Keymaster

    @jthoke

    Here are the solutions on your queries:
    1. For the feature which you require for your site will require lots of code customization work, which I could not cover all via this forum. Hope you can understand. But, if you can code it on your own, then, you can achieve it via the child theme easily. You can find the tutorial on child theme as well as the sample child theme here: https://napitwptech.com/tutorial/wordpress-development/tutorial-creating-wordpress-child-theme/. Also, for this, since I have made that via the widgets, you can find tutorial on widget via this link: https://codex.wordpress.org/Widgets_API.

    Now, from this theme, in the file inc/widgets.php copy the code from line number 357 to 471 in the functions.php file of the child theme and change the required class as mentioned in above widget API link and process further. This way, new widget will be created in which, you need to find the code:

    if ($type == 'latest') {
    	$category_posts_grid = new WP_Query(array(
    		'posts_per_page' => $number,
    		'post_type' => 'post',
    		'ignore_sticky_posts' => true,
    		'no_found_rows' => true
    	));
    } else {
    	$category_posts_grid = new WP_Query(array(
    		'posts_per_page' => $number,
    		'post_type' => 'post',
    		'ignore_sticky_posts' => true,
    		'category__in' => $category,
    		'no_found_rows' => true
    	));
    }

    and replace with the below PHP code and check:

    if ($type == 'latest') {
    	$category_posts_grid = new WP_Query(array(
    		'posts_per_page' => $number,
    		'post_type' => 'post',
    		'ignore_sticky_posts' => true,
    		'no_found_rows' => true,
    		'offset' => 1
    	));
    } else {
    	$category_posts_grid = new WP_Query(array(
    		'posts_per_page' => $number,
    		'post_type' => 'post',
    		'ignore_sticky_posts' => true,
    		'category__in' => $category,
    		'no_found_rows' => true,
    		'offset' => 1
    	));
    }

    2. Can you try the below provided CSS code in the Additional CSS Box provided via the Customizer Options and check:-

    .category #primary .featured-image img, .category #primary .category-links, .category #primary .entry-meta-comments, .category #primary .entry-header-meta, .category #primary .entry-content {
    	display: none !important;
    }
    .category #primary .format-standard.has-post-thumbnail .entry-title {
    	position: relative;
    	bottom: 0;
    }

    Thanks.
    Bishal Napit

    #209

    jthoke
    Participant

    Thank you very much for your help! I’ll do some learning before I attempt No. 1. I tried your idea on No. 2 by inputting that code into the Additional CSS box. I went ahead and published it. Here it is: http://cfbsource.com/clemson/. Any suggestions to make the headlines closer and remove the blue box? With those changes, it will be perfect. Thanks!

    #210

    jthoke
    Participant

    As you can also see here (http://cfbsource.com/daily-links/), anything tagged in the front slider carries the blue box to the category page with it.

    #211

    Bishal Napit
    Keymaster

    @jthoke

    For the category page issue still existing, can you try the below provided CSS code too in the Additional CSS Box and check:-

    .category #primary .post {
    	margin: 0;
    }
    .category #primary .format-standard.has-post-thumbnail .entry-title {
    	width: 100%;
    	max-width: 100%;
    	padding: 0;
    	background: transparent;
    }
    .category #primary .format-standard.has-post-thumbnail .entry-title a {
    	color: #222;
    }
    .category #primary .format-standard.has-post-thumbnail .entry-title a:hover {
    	color: #4169e1;
    }
    .category #primary .entry-title {
    	margin: 5px 0;
    }

    Thanks.
    Bishal Napit

    #212

    jthoke
    Participant

    Perfect. Last question. Is there a way to insert a small line between the posts on http://cfbsource.com/clemson/?

    #213

    Bishal Napit
    Keymaster

    @jthoke

    Can you paste the below provided CSS code in the Additional CSS Box and check:-

    .category #primary .post {
    	margin: 0;
    	border-bottom: 2px solid #222;
    }

    If you like the theme and appreciate the work put out on the theme, then, you can help by rating this theme through this link here: https://wordpress.org/support/theme/the-newsmag/reviews/

    Thanks.
    Bishal Napit

    #214

    jthoke
    Participant

    Thank you for your help! I only have one more issue that has arisen. If you go to http://cfbsource.com/mac/ you’ll see that it displays the most recent 10 posts. I’d like the category pages to display the most recent 50 posts and then have the rest go to the archive pages. If you click on the first archive page now at the bottom of that link, nothing shows up. How do I get the archive pages to populate with older category posts?

    I know you’ve put a lot of time into this. I’d like to compensate you. Can you I send you a Amazon gift card via email? Thanks!

    #215

    Bishal Napit
    Keymaster

    @jthoke

    Can you visit Settings->Reading->Blog pages show at most section and then add the required number of posts to be displayed in the blog, category as well as archive pages of your site in this very mentioned section and check? Also, for the category link displaying the 404 Page, can you update the permalink structure of your site once and check?

    Thanks.
    Bishal Napit

    #216

    jthoke
    Participant

    I have the permalink structure set to cfbsource.com/%category%/%postname%/ … The category base is: . (a period). Is that affecting how the multiple category pages show up?

    #217

    Bishal Napit
    Keymaster

    @jthoke

    It looks like that the category base which you have setup for your site is effecting that. So, can you remove it or add any other category base instead of only adding the . (period) for that and check?

    Thanks.
    Bishal Napit

    #218

    jthoke
    Participant

    I’m about to launch my site publicly but I’ve run into a problem. See http://cfbsource.com/extra-points-117/. The link showing up in the middle of the featured image (For Texas, 2017 should be last year it’s mostly left out in NFL draft) was something I posted under LINKS OF THE DAY. And now the system has removed that link and sent it up there in the middle of the picture. Can you help remove that placement? Thanks!

    #220

    Bishal Napit
    Keymaster

    @jthoke

    Can you try the below provided CSS code in the Additional CSS Box and check:-

    .entry-content p.entry-title {
    	display: none;
    }

    Thanks.
    Bishal Napit

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.