最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

block editor - Gutenberg CSS Issue

programmeradmin3浏览0评论

I have the css code below but it does not work on the post page:

( I am talking about font size and color )

/* gutenberg */
blockquote {
    text-align: center;
    margin: 20px;
    font-family: epicride;
    color: red;
    font-size: 90px;
}

wp-block-quote {
    font-size: 90px;
}

This is a page where it works:

/sample-page/

This one is post where it does not work:

/2020/03/27/best-places-in-africa/

I have the css code below but font-family is not read.

@import url('+Ya+Like+A+Sister&display=swap');

  figcaption {
    font-size: 30px;
    text-align: center;
    font-family: 'Love Ya Like A Sister', cursive;
      border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
      box-shadow: 20px 38px 34px -26px hsla(0,0%,0%,.2);
      border:solid 2px #41403E;
}
figcaption:hover {
    box-shadow: 2px 8px 4px -6px hsla(0, 0%, 0%, .3);
}

you can look at the same post page to check it out.

Also figcaption code affect my post plugin on homepage. How can I limit the code's control area with gutenberg element?

The home page: ( you will see black border on thumbnail )

/

Thanks

I have the css code below but it does not work on the post page:

( I am talking about font size and color )

/* gutenberg */
blockquote {
    text-align: center;
    margin: 20px;
    font-family: epicride;
    color: red;
    font-size: 90px;
}

wp-block-quote {
    font-size: 90px;
}

This is a page where it works:

http://www.oneclick.deniz-tasarim.site/sample-page/

This one is post where it does not work:

http://www.oneclick.deniz-tasarim.site/2020/03/27/best-places-in-africa/

I have the css code below but font-family is not read.

@import url('https://fonts.googleapis/css?family=Love+Ya+Like+A+Sister&display=swap');

  figcaption {
    font-size: 30px;
    text-align: center;
    font-family: 'Love Ya Like A Sister', cursive;
      border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
      box-shadow: 20px 38px 34px -26px hsla(0,0%,0%,.2);
      border:solid 2px #41403E;
}
figcaption:hover {
    box-shadow: 2px 8px 4px -6px hsla(0, 0%, 0%, .3);
}

you can look at the same post page to check it out.

Also figcaption code affect my post plugin on homepage. How can I limit the code's control area with gutenberg element?

The home page: ( you will see black border on thumbnail )

http://www.oneclick.deniz-tasarim.site/

Thanks

Share Improve this question edited Mar 27, 2020 at 20:53 matija 134 bronze badges asked Mar 27, 2020 at 19:48 Faruk rızaFaruk rıza 982 silver badges11 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Your blockquote has a <p> tag in it that overwrites the font-size attribute. Either delete the <p> tag or add css for bolckquote p or/and .wp-block-quote p

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论