Support » Plugin: Content Views - Post Grid & List for WordPress » different font size for different views

  • Resolved kasidya

    (@kasidya)


    Hi
    i created two content views. I’ve placed the shortcode for one in the main page. I placed the other one in the sidebar. I am using the sidebar on the same page as the other one.

    I want to show my main page content title bigger than that in the sidebar. I tried using this code in my css: `.pt-cv-view a {font-size: 30px !important;}
    `
    But it changed the font size for both of them. I want individual font sizes. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Content Views

    (@pt-guy)

    Hello,
    Please use this CSS instead:
    #pt-cv-view-VIEWID a {font-size: 30px !important}

    (Please replace VIEWID with ID of the main View)

    Best regards,

    Hi
    I tried doing that but nothing happened.
    This is the code i used .pt-cv-view-3c45df9m29 a {font-size: 30px; !important}

    But nothing happened.

    However, when I remove the id from it and just use .pt-cv-view a {font-size: 30px; !important}, then i was able to change the font size but it changes for both views.

    Is there any other way to change font size for just one view?

    Thanks!

    Plugin Author Content Views

    (@pt-guy)

    Hello,
    The CSS you used was incorrect: you changed # to ., and put the position of ; in wrong position. Please use this:
    #pt-cv-view-3c45df9m29 a {font-size: 30px !important}

    Best regards,

    Thank you so much! that did it. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘different font size for different views’ is closed to new replies.