{"id":1980,"date":"2017-08-23T03:35:06","date_gmt":"2017-08-23T03:35:06","guid":{"rendered":"http:\/\/docs.contentviewspro.com\/?p=1980"},"modified":"2023-12-28T11:00:23","modified_gmt":"2023-12-28T11:00:23","password":"","slug":"add-custom-css-content-views-free-version","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/add-custom-css-content-views-free-version\/","title":{"rendered":"Add custom CSS"},"content":{"rendered":"<p>Sometimes, you want to add custom CSS for Content Views output.<\/p>\n<ul>\n<li>With Pro version, there is a <strong>Custom CSS<\/strong> field in Content Views &gt;&gt; Settings page where you can add custom CSS easily.<\/li>\n<li>With Free version, you can use one of below ways to add custom CSS:\n<ol style=\"margin-top: 20px;\">\n<li>add custom CSS to Appearance &gt; Customize &gt; Additional CSS, if your theme has Customize feature<\/li>\n<li>create and activate child theme, then add custom CSS to file <strong>style.css<\/strong> of your child theme<\/li>\n<li>install another plugin to add custom CSS<\/li>\n<li>add this code to file <strong>functions.php<\/strong> of your active theme:\n<pre style=\"font-size: 13px;\">\/\/ Content Views - add custom CSS\nadd_action( 'wp_head', 'cv_theme_custom_style' );\nfunction cv_theme_custom_style() {\n\t?&gt;\n\t&lt;style&gt;\n\t\/* ADD YOUR CUSTOM CSS HERE *\/\n\t&lt;\/style&gt;\n\t&lt;?php\n}\n<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p>Best regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, you want to add custom CSS for Content Views output. With Pro version, there is a Custom CSS field in Content Views &gt;&gt; Settings page where you can add custom CSS easily. With Free version, you can use one of below ways to add custom CSS: add custom CSS to Appearance &gt; Customize &gt; &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/add-custom-css-content-views-free-version\/\"> <span class=\"screen-reader-text\">Add custom CSS<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[48],"doc_tag":[21],"class_list":["post-1980","docs","type-docs","status-publish","hentry","doc_category-management","doc_tag-custom-code"],"year_month":"2026-09","word_count":134,"total_views":"2","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"CVP","author_nicename":"cvp","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/cvp\/"},"doc_category_info":[{"term_name":"Management","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/management\/"}],"doc_tag_info":[{"term_name":"custom PHP code","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/custom-code\/"}],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=1980"}],"version-history":[{"count":7,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1980\/revisions"}],"predecessor-version":[{"id":5530,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1980\/revisions\/5530"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=1980"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=1980"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=1980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}