Search Results for 'css'

Results from the Forum
gocciolo
Participant
#0

Hello, I’m here to understand why a simple page assembled with Newspaper + tagDiv has 5000 lines of code (when a normal page with other themes is less than 1000/1500 lines). It is kind of weird, I have also activated Wp Super Cache but I do not see signs of CSS manification.

I’ve 500 words on the page and 4700 lines of HTML code.
In another page I’ve 200 words and 3000+ lines of HTML code.

Please can you give me insights to understand what is going wrong?

Thanks,
Alex.

sofialcada
Participant
#0

Hello

I tried to install the newspaper theme and got the following message:

Installing Theme from uploaded file: themeforest-5489609-newspaper.zip
Unpacking the package…

Installing the theme…

The package could not be installed. The theme is missing the style.css stylesheet.

Theme installation failed.

Simion C.
tagDiv Staff

So you want to color the post titles for those widgets. That could be done with some CSS, I will help you.
Provide a link to where the sidebar is located, mention what exactly you want changed and how. Also mention if this should be specific for that sidebar or in general maybe.

Simion C.
tagDiv Staff

Hi,

That is not possible by a theme option. Each demo contains custom design created by us, each is unique. This design along with theme panel settings will be imported as soon as the demo is installed
https://forum.tagdiv.com/demos_introduction/
https://forum.tagdiv.com/installing-demos/

That block 5 has custom design for it, only in that demo. By default it looks like this
https://demo.tagdiv.com/newspaper/block-5/

However you could use the design for that block without installing the demo if you don’t want to. This is the code used to style the block like that
http://prntscr.com/jztqes

This code can be entered in Theme panel->Custom CSS section, it will affect all the block
5 unless made more specific

.td_block_5 .td_module_3 {
padding-bottom: 16px;
}
.td_block_5 .td_module_3 .td-module-image .td-post-category {
background-color: transparent;
position: relative;
color: #ff036e;
margin-right: 0;
padding: 0 0 8px 0;
}

The font properties of the category tag can be modified in general, same for post titles
https://www.screencast.com/t/m4HkdGauY37
Or per block – https://www.screencast.com/t/WjFDogad

The color you can change in the code if needed. Let me know if you have more questions.

Thanks

sergio-romualdo
tagDiv Member

Hi Simion,
Maybe i put the code in the wrong css file.
can you tell me what is the correct file ?
wp-content/themes/Newspaper/style.css that ???

Simion C.
tagDiv Staff

Hi,

You could hide it on mobile, like this
https://www.screencast.com/t/4bQTLFrzcRt7
https://www.screencast.com/t/KnaMUficAmHx
Most elements can be hidden per device (rows, columns, elements).

You could also use the CSS tab while selecting phones in the viewport
https://www.screencast.com/t/pPqamoi5Hkaj
Maybe these suggestions are helpful.

Thanks

Simion C.
tagDiv Staff

Hi,

Enable it and then hide the view count if you don’t want it to be visible, with that code. The counting process will still work in the background, the icon will simply not be visible.

That code should work, enter it in the theme panel custom CSS code and if it does not work, provide a link to a post and I will take a look.

Simion C.
tagDiv Staff

The link color by default is the theme accent color. You can change the link color by changing the theme accent color, or color them as I showed above, or with a CSS code if those settings are not sufficient.

I believe in a previous topic this code was provided to you
https://www.screencast.com/t/snYhRAEYX0J7
That code worked for the HTML you have in that page content, which is like this
https://www.screencast.com/t/eQM62QUCmLs

Where exactly do you want to change the color of the links? If it is a post, then that code will not work, it is meant for page contents.

I see the links have a color at the moment, in a post on your website
https://www.screencast.com/t/a1h7nEqAD
Also in the blog page – https://www.screencast.com/t/YkJaryMFUf8x

rssdvs
Participant
#0

Hi,

I have an image on my front page (dontdoanmba.com) which looks great on desktop, but has tonnes of padding above and below it on mobile. Is there a way I can either:

Reduce the padding on mobile without changing it on desktop. In the element settings I can play around with the CSS, but it applies to all devices and I can’t see a way to say “only on mobile”

or

Hide it completely on mobile and show a different element instead

Thanks,
Ross

Bogdan B.
tagDiv Staff
Simion C.
tagDiv Staff

You could go the CSS way to do that – http://prntscr.com/jziw6i
That would be the easiest instead of code modifications which may also not be possible

.td_category_template_8 .backstretch img {
max-width: 1164px!important;
}

great1212
tagDiv Member

Thanks Simion, Do I have to re-create the links each time I have to create blogs. I thought the same work do by the custom CSS code which I have applied? Why the custom CSS code is not working on the links of this blog?

Simion C.
tagDiv Staff

The title could be remove only for that page with CSS, by using the page ID. For example on a test page
https://www.screencast.com/t/KaWd6Q2m

.page-id-XXX .td-page-header .td-page-title {
display: none;
}

Simion C.
tagDiv Staff

Hi,

1. That website seems to use a svg logo, this one to be more exact
https://d5c0iea6jarb7.cloudfront.net/images/hypebeast2018/hypebeast-logo.svg?w7h421lv
From what I can find online there are differences between image quality when using svg as logo. Some topics I found here
https://www.externaldesign.com/using-svg-graphics-in-wordpress/
https://elfsight.com/blog/2017/05/svg-png-jpeg-choose-the-image-format-for-your-website/
https://bjornjohansen.no/svg-in-wordpress

2. There is no unnecessary vertical space added, the header will be the height of the logo plus some padding
https://www.screencast.com/t/Rs7neHZpg
So the height of the header will be the height of the logo and some padding. Changing the line height of the main menu may affect the total height of the header
https://www.screencast.com/t/2MxDUFDm67

3. If you want to use that code be sure to enter it in the Theme panel advanced CSS desktop section, modification made to headers may not look best across all devices, so multiple codes would have to be made by viewport, or a more optimized version then that example if possible.
It is best and also recommended to try and use header styles as they are.

Thanks

Simion C.
tagDiv Staff

Hi,

That code works properly, I tested it as well.
Without code – https://www.screencast.com/t/HU6wJ5s706
With code added – https://www.screencast.com/t/har5K9wl
Hiding the post views with CSS will allow the popular posts sorting to work, the views will still be counted. Enter the cod, enable the ajax view count and then clear the cache as specified
https://forum.tagdiv.com/ajax-view-count/

Thanks

great1212
Participant
#0

I have used the custom code provided by your team and applied in the custom css area. The problem is that the hyperlinks of my page https://www.pakdefense.com/privacy-policy/ are changing. But, when I created a new blog post, then the hyperlinks are not changing. Please help me to fix this…

kpople
Participant
#0

Hello,
I’ve been struggling with adsense integration, and I desperately need help.

So basically, I’d been using the theme’s ad insert functions to insert the adsense ads (1 top, 1 bottom, and 1 in-line). However, since there’s not much option for me to fine tune the ads through the theme’s ad inserts, I decided to get rid of those codes, and manually insert the ads on every single post without the use of any plugins or theme’s functions. So I have completed inserting those ads on every post through the html section of the editor.

But here’s the problem.

The ads don’t display all the time, and this is not the problem with the browser cache, or Google unable to find the right size for the ad placement. The ads show perfectly and always with other themes made by other companies. I have tested this with 5 different themes and also the 2017 theme. But it was just these two themes, newspaper and newsmag, that do not display the ads all the time.

Please have a look at the following image:
https://imgur.com/a/S8j1FIz

The code I inserted on the pages are as follows:
<div class=”ad-wrap”>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– post-top –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-xxxxxx”
data-ad-slot=”xxxxxxxx”
data-ad-format=”auto”
data-full-width-responsive=”true”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

And the css I applied to the ads’ divs:
.ad-wrap {margin-top: 25px; margin-bottom: 25px; padding: 0; line-height: 0 !important; text-align: center;}
.ad-top {width: 300px; height: 250px;}
.ad-middle {width: 300px; height: 250px;}
.ad-bottom {width: 300px; height: 250px;}

The link to my website is on the picture from the above,
and you can click on any of the posts on the main page to test out.

Thank you in advance!

LiadP
Participant
#0

Hello,

We are using newspaper 8.8.1 with the cryptonews demo.

I have tried to create a child theme by copying the newspaper directory to newspaper_child and changing the description in style.css.
After activating the child theme, a couple of things are missing such as the social icons and the menu arrow icons.
Instead of an Icon I get characters such as \e81d.

Is there a way to fix this?

B.R.

TheLuckyGuy
tagDiv Member

Hello,

thank’s it worked 😉

It had to be inserted into the mobile theme custom css section…

Thanks.

simchris
tagDiv Member

You do have one console error, btw
The resource https://pagead2.googlesyndication.com/pagead/js/r20180618/r20180604/show_ads_impl.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate <code>as value and it is preloaded intentionally.

main errors are also clearly noted:
https://search.google.com/test/mobile-friendly?id=4LuGR3wMtBMNR1YOeduvYw

Fix the following 2 issues

Clickable elements too close together

Content wider than screen

So, you need to make sure your ads and logos are responsive; you need to use responsive ad units to be mobile friendly. The reason elements are not rendered properly is you are blocking your style.css and other elements via robots.txt which is really bad!

You also had 15 page items that could not be loaded:
https://search.google.com/test/mobile-friendly?view=fetch-info&id=4LuGR3wMtBMNR1YOeduvYw

Note the *blocked by robots.txt* — only you can fix that. You should never block Google from accessing elements loaded on the page.

e.g.,

	https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js	Script	Googlebot blocked by robots.txt
	https://www.tricksbykabir.com/wp-content/plugins/jetpack/css/jetpack.css?ver=6.2.1	Stylesheet	Googlebot blocked by robots.txt
	https://www.tricksbykabir.com/wp-content/plugins/jetpack/modules/widgets/social-icons/social-icons.css?ver=20170506	Stylesheet	Googlebot blocked by robots.txt
	https://www.tricksbykabir.com/wp-content/plugins/js_composer/assets/css/js_composer.min.css?ver=5.4.5	Stylesheet	Googlebot blocked by robots.txt
	https://www.tricksbykabir.com/wp-content/plugins/td-multi-purpose/style.css?ver=4.9.6	Stylesheet	Googlebot blocked by robots.txt
	https://www.tricksbykabir.com/wp-content/plugins/ytsubscribe/ytSubscribe.js?ver=2016.10.2.3	Script	Googlebot blocked by robots.txt
	https://www.tricksbykabir.com/wp-content/themes/Newspaper/mobile/js/tagdiv_theme.min.js?ver=8.7.2	Script	Googlebot blocked by robots.txt
	https://www.tricksbykabir.com/wp-content/themes/Newspaper/mobile/style.css?ver=8.7.2	Stylesheet	Googlebot blocked by robots.txt

It’s important when using testing tools to read the “why” and “solutions” noted on the checker, as in my pasted in stuff above.

Hope that helps!

(I don’t work here.)

  • This reply was modified 8 years by simchris.
NBak18
tagDiv Member

Hello.
I have disabled the post views, because I don’t want them to show.

I just tried your method to live css
.single .td-post-views {
display: none;
}
that I read above to these topic that makes post views (when enabled) disappear, but it didn’t work (I also enabled AJAX POST VIEW COUNT since I use WP Super Cache).

I just want very much to use popular posts without showing the number of views to each post and without any additional plugin.

TechieBraj
tagDiv Member

Desktop version is looking ok but mobile version is same as before, is there any other CSS for mobile also?

rssdvs
tagDiv Member

Just so it doesn’t look like I’m trying to get people to do it all for me, I have already tried:

1) Just leaving the title blank. The page then doesn’t show up in the breadcrumbs
2) Using a “hide title” plugin. All the ones I found did the same as point 1, hiding the title but also the page name in the breadcrumbs. Or just didn’t work at all.
3) CSS, but it hid titles on all pages everywhere, not just the page I was on

rssdvs
tagDiv Member

Thanks Simion, that’s helpful and has worked.

Is there any way of hiding the title when doing that? If not as a control panel setting, then some CSS I can apply just to the page that hides the page title? The page layouts I’ve done don’t look right with the title displayed.

Thanks again,
Ross

Simion C.
tagDiv Staff

Hi,

You could first take a look at the theme requirements guide
https://forum.tagdiv.com/requirements-for-newspaper/
Insufficient resources can cause many problems.

Also try entering the code in the theme panel custom CSS section, check if that works. Or you could do that in the tagDiv composer. Set a negative margin top for the row containing the grid
https://www.screencast.com/t/APfISctkH

Thanks

Viewing 25 results - 13,551 through 13,575 (of 33,436 total)