- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsDefault Block Settings Guide
- TutorialsHow to use custom fonts
Hello !
Please try this CSS code:
.td-logo-text-container .td-tagline-text {
padding-bottom:0px;
}
Thank you !
Hello !
For your first question I’ve replied on the other topic:
2. Try this CSS and adjust it as you wish: .td_module_15.post .td-module-meta-info {
margin-bottom: -41px;
}
3. That will require some custom work and unfortunately we cannot offer due to our support policy: https://forum.tagdiv.com/newspaper-theme-support/
4. Background and other colors can be changed from Theme Panel – Theme Colours
Thank you !
Hello !
If you modify it there it will affect all the modules, not just the mega-menu modules. Also there could be various design issues as you mention caused by changing the heading, the proper CSS will not apply anymore.
Maybe you can try if you want to decrease the title font size only for your mega menu, please try to use a bit of CSS code to do that. Try the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td_block_mega_menu .td-module-title a {
font-size:15px;
}
Hope this helps!
Thank you !
Hello !
You can change it using this CSS code: .td_module_15 .entry-title {
font-size: 20px;
}
The code must be inserted here: https://www.screencast.com/t/J1Nxw5s5
Or you can edit the blocks and change it from there as you can see here: https://www.screencast.com/t/wDO0NM7InBn5
Thank you !
Hello !
Unfortunately in order to change that size you will have to mix up multiple css tags wich can be hard. I suggest to you, either change the header template or add one from the Cloud library or you can simply upload a bigger logo.
We are sorry for the inconvenience !
Thank you !
Hello !
That padding can be disabled with TagDiv Composer by checking the CSS tab and set it how you want it: https://www.screencast.com/t/y6bM0qd4
Thank you !
Hello !
Unfortunately you cannot remove anything from the CSS files. If you are experiencing rather low speed you can make sure that all of our theme requirements are up to date as you can see here: https://forum.tagdiv.com/requirements-for-newspaper/
Or you can check out our page speed increasing tutorial: https://tagdiv.com/how-to-increase-page-loading-speed/
Thank you !
Hello !
The option you have saw in the picture attached works only on Single posts template from Cloud Library or Category pages from Cloud library. It will not work on the default ones. The easiest way to achieve what you want is by using a CSS code. If you can provide us a link and mention exactly where you want to make the category dissapear we will be happy to help you.
Thank you !
Hi,
I also have a question about Full Screen Width.
I’m also trying to design my index page with newsmag for full width, but I only manage to get the top menu and also footer (by custom css) to work. My news feed inbetween remains like in a box.
Is there any easy way to solve this, or is it Newspaper I should have choosen? I bought this theme 4 months ago and just started using it, if its newspaper I should have choosen, is there any chance I can swap?
Hi Vlad
Thank you so much for the CSS suggestion.
Unfortunately nothing happens.
I tried inserting the code in the theme custom css and in the theme editor, but neither has an effect.
Any idea what I am doing wrong?
Thanks
Hi,
I am a new user of Newspaper. I have been in trouble to find how I can change the colors of the items on the blog lists and the widgets, such as the category tags and the search button. I looked for the information on documentation and forums, but I cannot find. Please teach me where I can set the colors or I have to write the codes on Custom CSS?
BTW, I know that “theme accent color” on “Theme Colors” sets only the hover colors, but not the items’ color. It seems to me that “Theme Colors” needs more settings.
I am often in trouble to find items on the theme panel, but I think the theme is brilliant.
Thanks
Hello
Can you help me please?
I added social network into td_social_icons and found it into theme panel – social networks https://prnt.sc/ou199m
Added custom css with social network picture https://prnt.sc/ou19jg
But i can’t find this social network into social icons element https://prnt.sc/ou18iv
hi may i know why i can’t use css to set the width and size of the logo ? i am using .td-logo in this case. TQ
I have noticed that the base css file in the theme is 1.1 MB which seems rater large, given my site doesn’t use all the different options. Is there a way to reduce the CSS file to only contain the styles and layouts I actually use?
I want to add a query string to bust the browser cache for returning visitors so that they get the new css styles from my child theme when we are making design updates. Like this:
<link rel=’stylesheet’ id=’td-theme-child-css’ href=’https://lastat3.wpengine.com/wp-content/themes/lastat-nyheter/style.css?ver=3.0′ type=’text/css’ media=’all’ />
I read a lot of articles about this and most referred to modifying the wp_enqueue_scripts. But I couldn’t get that to work when trying to modifying the code that is in the child theme by default.
I tried the code you linked to above by adding it in Code Snippets but it did not work. This is what it looks when running it on my website:
https://i.imgur.com/xPyJAJ4.png
I would prefer it it added the version that I specify in my child theme css stylesheet but filemtime or anything other will work just as well.
How could I do that?
Hello !
That can be fixes using some css. Please provide a link to your website and we will take a look into it.
Thank you !
Hello !
Please try this CSS and let me know if worked !
.page-id-65120 .tdm-list-with-icons .tdm-list-text a img{
vertical-align: top;
}
.page-id-65120 .tdm-list-with-icons .tdm-list-text a {
color: black;
font-weight: 500;
}
.entry-title a:hover, .td-post-category:hover, .widget a:hover, .td_block_wrap a:hover {
color: blue!important;
}
Thank you !
Hi guys
You promised to help with the CSS for our mega menu page.
The page is here:
https://gulklud.dk/nfl-hold/
I would like the following:
1) images and text aligned
2) Text black and not bold
3) Text blue (like now) and bold on hover
Thank you
Hi
After some larger design updates I would like to force visitors to get the new theme css file by adding the child theme version as a query string to the css.
Today the child theme css looks like this in the head section:
https://i.imgur.com/oq65B4z.png
I have the following script in my child theme functions.php:
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’, 11);
function theme_enqueue_styles() {
wp_enqueue_style(‘td-theme’, get_template_directory_uri() . ‘/style.css’, ”, TD_THEME_VERSION, ‘all’ );
wp_enqueue_style(‘td-theme-child’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘td-theme’), TD_THEME_VERSION . ‘c’, ‘all’ );
}
How would I modify the wp_enqueue_scripts above to achieve that?
Hi All,
I am new to WordPress and Newspaper – my main focus is databases. In a lot of the database forums I subscribe to, and as I suspect most of you know, it’s not uncommon for members to share code that creates a feature – not least because others then frequently take the initial entry, adapt it, then re-post. These sites also quite often also feature a sample code silo.
(@TagDiv Support, there’s a lot of really useful content on this forum but it’s limited navigation, layout and quantity of posts make it difficult to search effectively, not to mention time consuming. Can we have a Sample Code silo? Not only would it be useful for members but possibly limit you having to repeat the same or similar support requests).
BACKGROUND
I have a number of Use Cases that require elements on a web page to display simple listings of external editorial content – similar to a news ticker-type display but with no animation.
Initially, I decided that the TD Composer elements Blocks 10 & 9 were the most suitable – as they were closest to my required simplicity and would only be used for these Use Cases. However, the fact that there is no Newspaper option to duplicate a block within TD Composer, and I want minimal plugins installed, I decided to teach myself the PHP/CSS that would be required to achieve my objectives.
FUNCTIONALITY
- The link here shows two page elements that have different content and features which were created using the same Block 10;
- This involved creating new field types using ACF Custom Fields, including a post-type whose options could also be used in a PHP conditional If statement to create the variable field display within the same block;
The generic fields are headline, media outlet and published date for simple listings and other use cases have additional meta data fields; - When the headline linked is clicked on it has to a new web page and go to the external content. The published date must be that of the original editorial, not the WP posting date. This last point is important as I would be bulk uploading posts a few times a week, that will feature a spread of publication dates.
The following provides the necessary ACF Custom Fields setup, the PHP code and the CSS.
ACF Custom Fields
The table below lists out the field names and their setup –
- Post Type: Required. Field Type is “Select”. Drop down list choices are “Editorial” and “Research”;
- Title Link: Required. Field type is “URL”. This contains the URL of the external content page. Non-conditional as it applies to both Post Types;
- Publication Date: Non-conditional. Field type is “Date Picker”;
- Media Outlet: Non-conditional. Field type is “Text” and contains the name of the external content publication;
- Media Outlet URL: Required. Field type is “URL”. Conditional logic is if Post Type = “Editorial”;
- Some Other Field: Required. Field type is “Text”. Conditional logic is if Post Type = “Editorial”;
NOTE: I recently edited one of the Post Type options as there was a typo. I subsequently discovered that in doing so it not only broke all the conditional relationships with other ACF fields, that I then had to reset, but also reset all the Post Types assigned to my posts to a single value – which I also then had to go through and update. I raised this with ACF Support, who said –
“This is expected behavior, each field value is saved independently under each post and it is not recommended to change the field settings after posts have been saved with a value. You can however update all the field settings by creating a query to step through all the posts and pass the new value to the update_field() function. Please take a look at the following resource page for more info on this: https://www.advancedcustomfields.com/resources/update_field/”.
PHP
Block 10 uses the td_module_9.php file. My code amendment is here – https://pastebin.com/vJDbVjMA
Things to note –
- I have stripped out most of the default php echo statements that display author, WP post date and so on to stop them appearing if your default Newspaper 9 setting is to have these on;
- I’ve kept the div names etc as much as possible but the naming may not make sense in terms of the fields that sit within. This means the post title font formatting is still controlled by TD Composer’s Block 10 style settings menu. Similarly, the Media Outlet and date fonts can be collectively changed via the Article Meta Info style options;
- Additionally, as both these fields sit within a span class other style options are possible via custom CSS;
- You will see the conditional variable for the ACF field, Post Type, along with the other ACF Field variables defined within Function Render at the top of the code;
- Finally, to display the tags I used the suggestion in this support post (another good example of why a Sample Code silo would be useful), https://forum.tagdiv.com/topic/display-tags-along-the-category-on-the-blocks/. My code already contains the php get_the_tags statement, but you will have to copy Vlad’s Pastebin code to your td_module.php file as he suggests. Note that I amended this slightly as it displayed a field label for the tags and I think it’s obvious what they are;
- If you want the same, simply remove the following line –
$buffy .= '<span>' . __td('TAGS') . '</span>;
CSS
This is here, https://pastebin.com/mjTz8Tua and features comments to explain what it does, which for the most part is reducing spacing and tightening the gaps between fields.
Hopefully, this post is clear enough to enable you to replicate and hopefully extend this functionality. A big thanks to Simion C. at TagDiv for his fantastic support in helping me work through this.
Please be aware, I have only been teaching myself PHP and CSS for about four weeks so I’ve no doubt the experienced community members will have more elegant ways of writing the PHP or CSS.
Please share if you do ?
Best Wishes
Gary
Hey I would like to add a shadow to the sidebar’s widgets of this page: https://urban-digital.de/leonhard-obermeyer-center/
(using CSS because I edit this page with wordpress editor and not tagdiv Composer)
Thanks!
Hello !
You can add custom CSS codes in Theme Panel – Custom Code: https://www.screencast.com/t/7yJq20EdB
Thank you !
Hello !
Please try this custom CSS:
.td-main-menu-logo amp-img img {
min-height: 100%;
}
This must be pasted into Theme Panel – Mobile Theme – Custom CSS: https://www.screencast.com/t/THIJ4TDFX6
Thank you !
Hello!
How can I add my own CSS, only in Live CSS in browser? Or maybe I can edit files in Theme folder?
I found tutorial about Custom buttons (https://forum.tagdiv.com/increase-users-engagement-add-custom-buttons-posts/), help me please with using the MCE editor.
Hello !
That is possible when having a Single Post template from the Cloud Library as you can see here: https://www.screencast.com/t/CO4LWTcimW
Follow this tutorial to learn how to use the Single Post Template: https://forum.tagdiv.com/design-post-pages-using-cloud-library-templates/
You will have to make some modifications. First of all add this css code into your Theme Panel – Custom Codes – CSS: https://www.screencast.com/t/vxXrGBIV
.td-post-next-prev-content { align-items: center; border-radius: 40px; text-align: center; display: inline-block; margin-bottom: 40px; width: 50%; height: 50px; background-color: black; } .td-post-next-prev-content a { text-align: center; margin-top:15px; margin-bottom:5px; color: white; } .td-block-span6 { text-align: center; width: 350px; }
And you will have to make some modifications in PHP too following this path: legacy/common/wp_booster/td_module_single_base.php ( I have used Notepad++ to edit it )
and change the codes at the line: 929 ; 930 and 940 ; 941 like in here: https://www.screencast.com/t/AEgFOTDC
Thank you !