• Resolved juicyjuke

    (@juicyjuke)


    I have my Page-home.php calling a template “content-featured.php”

    Ive tried multiple custom css code snippets for this, and none seem to be working.

    What im trying to do is change JUST the links of Categories this template displays to a specific font.

    how would I go about doing this in this template below?

    below is the code I have in content-featured.php

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    		<?php if( has_post_thumbnail() ): ?>
     
    			<div class="thumbnail"><?php the_post_thumbnail('small'); ?></div>
    
    		<?php endif; ?>
    
    		<?php the_title( sprintf('<h2 class="entry-title"><a href="%s">', esc_url( get_permalink() ) ),'</a></h2>' ); ?>
    
    <?php the_category(); ?>
    
    </article>

    any help id appreciate
    – noob

Viewing 6 replies - 16 through 21 (of 21 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @juicyjuke Please do not create duplicate topics for the same thing. Those get deleted when found.

    If this is not resolved please continue with this topic.

    Thread Starter juicyjuke

    (@juicyjuke)

    Ok np. I didn’t see the topic on the forms less than I thought it might’ve gotten lost since there was no reply just having such difficulties. Sorry I will keep that in mind

    • This reply was modified 7 years, 11 months ago by juicyjuke.
    Thread Starter juicyjuke

    (@juicyjuke)

    Hey don’t mean to keep bugging. This is a really frustrating problem for me.

    Moderator bcworkz

    (@bcworkz)

    It’s unfortunate you continue to run afoul of our guidelines. We ask everyone to not bump posts. Do Not Bump Posts At this point it doesn’t matter much (it neither helps nor hurts), but this is something you need to be aware of.

    I only quickly reviewed your previous posts, so apologies if any of the following has already been covered. Without further ado…

    It’s very difficult for us to offer exact CSS advice without a live link to the page in question. Steve has done a great job despite not having a link, but we are essentially guessing without one. It may or may not be possible to isolate category text from other content. It depends on how the various outer containers are configured. It may be helpful to wrap the category output in a dedicated container on the template file. Then defining a proper CSS selector becomes much easier.

    The best thing you can do besides providing a live link is to use your browser’s developer tools to inspect the HTML and related CSS. The tool has an element selector gadget (the rectangle icon with an arrow pointing into it) where you can select which HTML item you want to inspect. The relevant HTML is highlighted in the tool and related CSS is displayed. Click on other HTML tags in the inspector to get related CSS of other elements. You can add new rules to the list of rules. The results from a new rule are quickly reflected in the page display, so you can experiment with different parameters to determine what works or what does not.

    The rules you add in the inspector tool are temporary. They disappear when the page is reloaded. Once you come up with a rule that works, copy it to your theme’s custom CSS to make the change permanent.

    [Steve] seems to be the only one that responds to my posts around here. People don’t want to deal with noobs or what?

    Not true at all! There are plenty of noobs who get answers here! Whether anyone choses to contribute or not is up to the individual. Everyone has different reasons for choosing to contribute or not. Yes, some may not have the patience for some noob questions, but the reasons are usually more related to if one knows the answer or if the answer is easily found by searching.

    The biggest reason no one else has been contributing here is many tend to leave topics that are being dealt with to the original 2 participants. Multiple contributors can be confusing and not helpful. That has never stopped me personally if I have something to contribute. Until this point there was nothing I could say that Steve hadn’t already said.

    Thread Starter juicyjuke

    (@juicyjuke)

    Ya i get it. Didn’t mean to pump. I accidentally responded in this post instead of the previous. I assumed this was deleted and it was cached into my browser.

    i was making convo is all with the noob thing. No harm intended. Sorry

    Thread Starter juicyjuke

    (@juicyjuke)

    I have solved the issue. Thank you for the all the help. It was needed

    The_category function calls get-the_category_list and so on .

    So this css helped

    ‘ .post-categories li a {font-family:Myfont;} ‘

    • This reply was modified 7 years, 11 months ago by juicyjuke.
Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Difficulty editing font type for a specific template’ is closed to new replies.