Search Results for 'child theme'

Results from the Forum
Anonymous
tagDiv Member

Did your “adjustment and setting[s]” possibly offest the block1 homepage module?

If your CSS is in the child theme (as recommended when customizing themes) you could try deleting all new CSS, saving the file and refreshing (after cache deletion). If the issue is gone then you know it’s the CSS and you can revert all your CSS back and hunt out what’s causing the issue.

Marius
tagDiv Staff

Hello,
From Child Theme no, just edit the function.php file from the Parent theme.

thecreep
tagDiv Member

This is exactly what I was looking for.

My site currently has around 3gigs of images, so the multiple copies the Newspaper theme creates is not a good idea for my site.

If I want to quote out the sizes I am not using, is this something I can add to the child theme?

simchris
tagDiv Member

Happy New Year to you also 🙂

My hope is to be a better person for myself and others this year, revitalize my own business which took a bit of a hit the past 2 years due to economy in U.S.

My hope for this particular theme is that you continue to develop and focus on it being a newspaper/magazine theme and not a “one size fits all” theme (e.g., most magazines are not stores, so wasting a ton of time on ecommerce stuff can detract from optimization for magazine and newspaper publishing things which the theme is focused on). I’d love to see a CSS style map of post page elements to make it easy to customize some things using custom.css or append to child theme style.css etc. (e.g., Google now wants to see UX enhancements for mobile and is whining about the breadcrumb, headline, and “categories” buttons above featured photo being too close together so I now need to make the category buttons larger with more space around them so they can be “tappable” … sigh).

You’ve done a great job with this product, and here’s hoping for your continued success!

Chris

simchris
tagDiv Member

That’s way outside the scope of the theme and means changing the way wordpress actually writes that directory structure. This is the kind of thing you typically would “google” to locate a how to.

You likely will need to create a function and put that in the root theme folder at end of the functions file or in the child theme folder for your custom functions file.

If you know what you’re doing, this can be done as so (apparently):

`add_action(‘init’, ‘cng_author_base’);
function cng_author_base() {
global $wp_rewrite;
$author_slug = ‘profile’; // change slug name
$wp_rewrite->author_base = $author_slug;
$wp_rewrite->flush_rules()
}

note, that $wp_rewrite->flush_rules() supposedly helps solve the 404 error when going to new rule.

ALSO: you may want to put Redirect 301 implicitly in your htaccess file for each author pointing to new location, once the new URLs actually work (not before, as you might create a loop of doom). If the old URLs automatically redirect to new location, this means WP is doing soft redirect so you won’t need to do manual 301s for each author.

IMPORTANT: once you do this you would also need to visit your permalinks settings in the wordpress panel and just hit “save” to resave.

If things don’t work right, simply remove the code from functons.php and then go back and hit ‘save’ again on your permalinks settings page. (and remove any manual 301 redirects if you do that)

Modifying how wordpress works is not part of the theme, fyi.

Hope that helped! 🙂

HAPPY HOLIDAYS ALL!

I am a helpful elf not working for TaGdiv — I’ve been updating and moving my websites and web server this month, hence a lot of “waiting and watching” the browser in one window while things update; hence surfing the web while that’s happening. Lots of little 15 minute windows where I need to watch, but nothing else I can really concentrate on; hence my little nuggets of (hopefully not too annoying) wisdom. In early Jan. you won’t see me here very often, as I’ll be working on a large project for our in-house system, but using this theme for a multi-user setup, so may have some helpful tips on that.

HAPPY HOLIDAYS ALL!

  • This reply was modified 12 years by simchris.
  • This reply was modified 12 years by simchris.
Marius
tagDiv Staff

Hello,
You have this in Theme Customizer http://screencast.com/t/BLsT2Uwox4mk under the Header section http://screencast.com/t/XtxivxNg5sDk

If you want to add custom CSS, please use the Child theme.

Thanks

Lolly
tagDiv Member

Already rebuilt the thumbnails, so that’s cool. Not all look good anymore with this theme, so still having to redo them.

I just wanted to add a feature image that is a reasonable size, like 326 x 235 as that will keep my website fast, but then it does not fit into all the places and looks bad most of the time, but if I upload 700 x 357 its a big file as I have over 300 posts on my site and by the time I add all those images that’s getting too big.

I know Google is going to complain about page speed and that affects my ranking, so I am trying to balance it all up.

If the large 700 x 357 placeholder did not keep showing up under category page at the top, then I would not use that large size anywhere, if you tell me how to remove that top post which just seemed to be pulled from the first post, then that should make things all work out.

I am happy to do css, htaccess and php as long as you are clear where I am making alterations, prefer custom css if possible, but not sure you have that with this theme.

Happy to sue a child theme, in fact after custom css, it would be my next best choice.

Lolly
Participant
#0

Please tell me how to remove the very top menu which is black, I don’t have items in it and it just says click here to select menu, thanks.

Also where do I put custom css or do I have to use a child theme, if so can you please tell me what to recreate so I don’t have to change it every time I update it, or add a way with next update for us to choose how many menus we want and where.

Marius
tagDiv Staff

Hello,
Do you use Child theme and added that css in style.css and not work? The Child theme should work, strange 😐

If you want you can give us access to your WP and we will take a look. Send via email at contact@tagdiv.com

Please add For Marius in subject and also put a link to this message in email.

Thanks for the message!

willevo
tagDiv Member

Hi Marius,

You guys are very helpful.. thanks for the support.

Thank you for showing me the logo area.. I will remember that area in the future.. the theme is so robust. 🙂

Slider.. I understand now.

I added the code to my child theme style.css but I don’t see a change. I refreshed multiple times. Using an iphone to test. Any thoughts?

Thanks again for the help. You are awesome.

Will

simchris
tagDiv Member

Sandall
Hi, be sure to clear your cache as you may be seeing old styles. Also, you may need to reset a few things you set in the “master” theme if they didn’t carry over when switching to child theme.

Suggest:
1) put the default style.css back in the /Newwspaper-child/ folder
2) then revisit settings to check your settings you started with from parent theme are all still there … in theory, should look same as you has the prior day.
3) THEN modify the style.css in child them to “over ride” stuff from parent theme.

I went through this same (mis)adventure in one case.

Hope that helped.

————-

Fun fact, one of my long time clients started using the Newspaper theme today on his news portal, which I thought was fun to see — had no idea until I went there to look at something and went, HEY! I know this theme 🙂

Sandall
tagDiv Member

Thank you for reply @mbasche, I didn’t forget to import style.css from parent theme. Instead, it is set by default in child style.css.

Sandall

mbasche
tagDiv Member

Maybe you forgot
@import url(“../Newspaper/style.css”)
?

Sandall
tagDiv Member

Thank you Christopher for your suggestion.
I have activated Newspaper child theme, but it broke page CSS. Maybe, I did something wrong?
So, first, I uploaded Newspaper-child folder with style.css and functions.php files in it, into themes directory on web site. Than I navigated to Themes and activate Newspaper-child theme. Am I wrong?

Marius, i have set you a mail regarding this issue.

Thanks you for support.

Sandall

Marius
tagDiv Staff

Hello,

@Sandall
you have managed the CSS from Child theme?

Marius
tagDiv Staff

Hello,
Use the child theme, for custom CSS.
If you have made custom css, on updates you will lose the modification, because you overwrite the files.

Install the CHild theme and add you custom css there in Appearance -> Editor

Thanks

simchris
tagDiv Member

I think you can simply do a CSS override in child theme style.css

.entry-title { font-size:26px; font-family:Georgia,serif; font-weight:bold; }

not sure that is correct style, might be something like this — (this is probably wrong!)

.h1 entry-title { font-size:26px; font-family:Georgia,serif; font-weight:bold; }

I will be messing with this myself to add more leading above/below the header. Marius will likely answer more clearly before I get back on this. Just some ideas in case you’re anxious to mess with your custom.css to move on with your life …

  • This reply was modified 12 years by simchris.
simchris
tagDiv Member

I will also be adding some white space above/below the post titles as it’s all a bit smushed together with the breadcrumbs, title, then the cat pills and author name …

simchris
tagDiv Member

It works for me. I use it to make the author box mini bios “smaller” since I make rest of the site text larger for better mobile/desktop experience, but then the bio gets huge.

Check that you’re stating the proper style, and class, and format that properly in the style.css file

e.g., to make the author box text a wee bit smaller (I made page text 15px);

.author-box-wrap .desc { font-size:13px; line-height:1.4em; }

OH… sorry, meant to say also, be sure you actually “activate” the child theme as your main theme … simply putting stuff in child folder won’t do anything unless you “activate” the Newspaper-child as your theme instead of Newspaper. This is one thing a lot of folks miss when working with child themes first time. 🙂

  • This reply was modified 12 years by simchris.
Sandall
Participant
#0

Hello,

Does anyone use Newspaper-child theme? It seems it doesn’t work for me. I have put a css codes inside style.css file inside Newspaper child folder and nothing happens?

Maybe I am wrong?

Any help?

Thanks,
Sandall

Marius
tagDiv Staff

Hello,
If you added in style.css in Child theme on updates you don’t loose the changes you have made to hide that texts.

Thanks for your message

seitenprofi
tagDiv Member

Thanks Marius for your support, that helped. (My site is still in development and not accessible yet.)

Since these changes will be overwritten by the next theme update (I think ;-))and I don’t need those sentences, I added the following code to my newspaper-child/style.css:

.td_search_subtitle
{
  visibility: hidden !important;
}

.td-404-sub-title
{
    visibility: hidden !important;
}

They will simply not be displayed.

simchris
tagDiv Member

vidapropria
1) reduce image sizes either by running compression plugin and/or adding compression factor to your functions file
2) faster server account, if you keep seeing “slow response from server” error — that was a [!] item on your last report speed check — nothing can be done about that with the theme, or in WP; that is how fast the account you have and your hosting provider is responding to ping/start showing the page. For example if you have a $5/month account, upgrade to $10/month account (I’m just using that as example). Low cost accounts are usually on a machine or VPS being shared with 1,000+ other sites. Slightly more costly hosting accounts give more resources to each site, by sharing the resource pool with fewer domains.

Verify deflate/gzip working; remember this only serves up faster versions of your content, but doesn’t optimize them prior to that. I think I saw a 100K image file in your last report … that is waaaaaaaaay too big. Try using smushit plugin and regenerate thumbnails to see if that helps? (Backup images first as changes to images on server will be destructive — meaning they are changed and cannot be unchanged).

Also, for testing if you’re using a child theme, be sure to try NOT using a child theme to see if that gains you a point.

However RECOMMENDED:
1) optimize images before/after upload
2) look at better hosting – if you keep getting “slow to respond” error from Google — no way around that on your side.
3) test without using DISQUS, as this does slow things down. We stopped using it for that reason. We’re leaning toward phasing out comments on most sites, per industry practice now that most comments tend to be trolls and arguments (see: CNN for example). Any comments plugin really slows stuff down on WP. Unless you gain ad revenue from 10,000 visitors per day, it’s not really an essential plugin, and more of a glamour thing (in my opinion).
4) turn off all jetpack stuff for speed test — anything that connects to the WP/Automattic mothership adds latency.

Hope that helped 🙂

————–
as an aside on pagespeed errors:
I’m actually dealing with even more arcane stuff like how to enqueue the parent Theme’s style sheet in the child Theme’s functions.php, to bypass the annoying @import not recommended error from Google which the Automattic folks seem to think is a non-issue. I will post my efforts on THAT noise if anybody cares.

[ UPDATED ]
I just ran your GPS test, and saw you’re up to 82/100 desktop. So, looks like you’re making progress. The images issue is the next thing you need to resolve. You’ll have several points for that, as reducing the footprint of your images speeds up page (e.g., if you go from 300K to 150KB; that’s 50% less time loading images!).

For the minification stuff… note you would need to use a plugin for that (WPminify) although this has some issues; -or- you need to manually minify SOME resources which are not already reduced in size. RADU doesn’t minify all the code as developers have a hard time modifying code if they can’t read it.

So, if you knew there were a couple of large CSS/JS files you might want to minify, you can easily do that using an online tool (I use this one, although it won’t work with IE11/Win7 properly … use Chrome or similar: http://refresh-sf.com/yui/ )

Basically, “minification” of CSS and Java/js files removes the extra spaces, comments, and line breaks to make file “more compact” … so if you had a 125Kb CSS file, by removing all the spaces, line breaks, comments, it might end up being 100Kb, which is the kind of reduction that PageSpeed looks at — the idea being if you had 5 files being loaded on page and you reduced all of them by 20kb – well, that’s 100Kb and is larger than what website developers like me used for the entire page and graphics 10 years ago (we used to shoot for 50kb max page load, if you can imagine that!) …

  • This reply was modified 12 years by simchris.
simchris
tagDiv Member

Just fyi on web fonts …
since the fonts are being loaded from Google’s CDN, there isn’t really any way to “optimize” Google’s loading of those fonts in the way some of you may think – how can the theme optimize something living on Google’s CDN ?. Although “technically” one might remove the &ver=3.71. for some very minor compliance in moving away from that kind of versioning data in WP.

How we did it on our static main business site (not running WP except for news and blog areas, but it’s the same concept in how you might “super optimize” YOUR setup), was we downloaded the equiv fonts (Open Sans family), created style sheet, uploaded both CSS and fonts to our own CDN (S3/CloudFront), setup CORS rules, and now load the fonts off of Amazon’s cloud where we could set expiration times of one year, and compress, etc. In our case we did it both to control all the font parameters for PageSpeed and also the whacky bug in IE for not loading the true italic version of fonts off Google’s CDN without manually inserting calls to all font versions one at a time for IE which results in loading 8 font families per page). Using a custom style sheet to load all the fonts, we load just ONE file for the reg/reg italic, bold/bold italic and solve two issues with Open Sans.

For “most” people you need to setup your compression, and time to live (expiration headers) on YOUR end of things before anything else – that is not a function of the theme. Google how to do that, or contact your hosting provider. Then move on to the other stuff. As GZAM pointed out, and as I have previously, the compression and expiration headers alone account for about 20 points or more in Google Page Speed.

Fonts are a tricky bit, where any “designer” fonts, slow down page regardless, as they have to be loaded from somewhere. For those looking for “fastest speed” once everything else is done, you might have to NOT use custom fonts at all, and sub out Trebuchet MS for the menus, and something like Georgia or Arial/Helvetica for the body text.

Spending the $2 a month for Amazon’s CDN (or similar) is one way to speed up your fonts, vs loading them from Google directly, but that is something you need to try, modify, test, modify, test. For example, we use Font Awesome, and we tested loading that off the cloudflare hosted version vs our CDN on Amazon – Amazon was faster so we load that from there.

Not sure if any of that helps. It is a process, not a one click thing to optimize a page for ‘speed’ — there is NO “one click” solution out there due to complexity of servers, content, and everything being loaded on the page.

For example on optimization — if you want faster speed, what about image compression level using built in functions of wordpress? Did you know you can use a plugin or function to increase the compression level of the thumbnails appearing on the pages? Smaller files there make page load faster even before server side gzp/deflate. These are the kinds of things you need to research if trying to optimize your site for fasted load times.

For example, you could set the compression of images to something like 60% or even 50% in your child theme functions.php … will only change level on new images uploaded unless you use the regenerate thumbnails plugin or similar.

add_filter( 'jpeg_quality', create_function( '', 'return 50;' ) );

I’m not sure what Radu has the quality set to by default, but increasing the compression even 10% from the default improves speed.

Additional ref:

switch ( $mime_type ) {
 case ‘image/jpeg’:
return imagejpeg( $image, $filename, apply_filters( ‘jpeg_quality’, 90, ‘edit_image’ ) );
case ‘image/png’:
return imagepng( $image, $filename );
 case ‘image/gif’:
return imagegif( $image, $filename );
 default:
 return false;
 }

Google’s webpagetest.org actually recommends quality level 50 for web images.

We are shooting for “60” at the moment (60/100 compression is not percentage of compression, btw).

  • This reply was modified 12 years by simchris.
  • This reply was modified 12 years by simchris.
  • This reply was modified 12 years by simchris.
simchris
tagDiv Member

Anything in /wp-admin/ is part of the core WP install

usually *all* theme files and demo content will go in

/wp-content/themes/newspaper/
/wp-content/themes/newspaper-child/ (or similar)
/wp-content/plugins/nameofplug/

anything in your root folders are part of the base WP install, not the theme
/wp-admin/
/wp-includes/

(e.g., /home/freestu/public_html/wp-includes/ )

Viewing 25 results - 12,801 through 12,825 (of 12,866 total)