So you have no example with actual line breaks?
Tagdiv back on monday.
Pekman…
Link to example post with error?
What version of theme being used?
Ah so! Beg pardon ๐
I assume you’re referring to when the posts are shown in modules/blocks.
I think TagDiv showed how to change that with Newsmag, but I don’t have link handy.
You will need to wait for them to get back in to answer this one.
Example link?
Never seen this issue. Does this happen in the preview while using the visual or text editor to do a normal post? Are you using the default post template(s) or a custom template?
In your screen shot your text has no spaces; and so there would be no line break.
Be sure to turn off any plugins not included with theme; and also check console in Chrome/IE with F12 to reveal errors on page render.
Yup, V6 is a new theme; it has been almost totally re-written, and so works differently and to address issues that some folks are having.
But I’m sure Radu/Marius, etc., will follow up as needed.
As he noted, not everything can be moved due to the imperfect programming of some plugins; so those “bad” plugins cannot be moved as they may break things.
CSS generally is loaded in the header – this is correct practice. JS is loaded in footer unless some plugins “require” it in header to even work.
That is the quandary that Radu describes which there is no simple solution for.
Upshot: the speed booster plugin can “help” move some things, but not all or stuff just won’t work — through no fault of the theme or the speed booster framework TagDiv have come up with.
1) try disabling all plugins except visual composer
2) don’t use child theme; activate main theme
3) turn off/clear caching if using before doing anything; if using caching turn off all minification settings
4) turn off mod_pagespeed if using to clear caching
5) if using CDN server; you need to “retire/refresh” cache
6) if installing via FTP, make sure your FTP software set to automatically upload files properly (e.g., as text or binary depending on type of file)
7) make sure you have enough memory allocated; you may need to edit your wp-config.php file in your root WP folder to increase default memory from 40MB to at least 96MB (128MB recommended)
https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
TRY #7 FIRST ๐
And you don’t want to do CSS minification on the functions.php file … it’s not a CSS file.
CSS / style.css = styles for the HTML (fonts, colors, sizes, layouts for theme)
functions.php = code used to modify how WordPress works.
-
This reply was modified 11 years by
simchris.
FYI
adding stuff to end of functions.php has nothing to do with the CSS.
You might try adding only the stuff you need from my suggestions functions; and make sure you copy/paste properly to not chop something off — also remember to turn off clear any caching when making changes to your CSS and other files so that any caching save new versions.
What you can do is only copy the stuff you may need to bottom of your functions.php file; such as the item for jpeg compression, the items to hide the ? query variables in the meta data …
I don’t think there is anything in my suggested items for functions.php which would impact your menus.
If you’re using Visual COmposer for posts, then you would not want to include that section from my suggested functions.php stuff.
In any case, it might be something else entirely per Emil’s post. The functions work fine for me on NP6.
See the docs right side of page > then ‘how to update’ ๐
I love Newsmag as it is; just would like some options to streamline code, which the LESS compile method will solve for many things, thankfully. However, a “style2.css” and “functions2.php” kind of thing with all the bbpress, woocommerce, and other such things removed, would be super duper cool. Being able to just rename the 2 files to make them the default to cut the bloat for pure magazine sites would be on my happy camper list ๐
Oh, and option to have the categories print bottom of page with tags vs top of page, which seems to cause a problem with pesky Google News (they pick up the categories for some reason as part of headline sometimes when printed above the headline). I am either turning them off, or manually moving them in the template file — not big deal, but some folks will cry about having to touch the code, as you well know.
Be sure to update to the 6.1 version that went live today, as they may help.
No, if you are running version 1.71 you don’t need to run a patch. You can see the “version” you’re running when you look at main screen of your theme admin panel. ๐
If you’re running version 1.7 you can update to 1.71 following the theme docs on “how to upgrade” … simplest answer. See link to Documentation > Newsmag right side of page.
-
This reply was modified 11 years by
simchris.
Custom code still works for adding to end of your functions.php file; however this one element might not, with NP 6.1 (not yet tested by myself at least):
add_action('init', 'myoverride', 100);
function myoverride() {
remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}
function dequeue_visual_composer_css() {
if (is_single()) {
wp_dequeue_style('js_composer_front');
}
}
add_action('wp_enqueue_scripts', 'dequeue_visual_composer_css', 1003);
the other things I have for functions.php are to impact WordPress, and *not* the theme itself, and so work with *ANY* theme.
Hope that helped ! ๐
I just checked again in Chrome/latest build; Win7/64 and iOS — and look great.
Note Chrome really holds onto cache. You may need to fully clear your history/cache in Chrome if it’s got stuck CSS for your site from a prior version/site. F5 in chrome does not fully refresh the page; you have to actually go to your settings and delete the cache/history (really!).
SEE:
https://support.google.com/chrome/answer/95582?hl=en
๐
-
This reply was modified 11 years by
simchris.
It’s pretty much just a patch to move from v 1.7 to v 1.71.
If you’re doing a normal, more traditional upgrade, via FTP, you can ignore that. It’s there as optional upgrade method, not required.
Bruce
just to chime in; from my own projects — it’s NOT that sample, unfortunately; there aren’t any plugins I’ve seen which combine “all author views” within a theme. Normally you would do something like setup Google Analytics and apply a custom filter to the author by name, or use something like Piwik to create custom tracking per author.
The theme setup is a fairly simple one of tracking ‘views’ based on post and then writing that to a data field saved with post meta (hence why you can see that in each post custom fields). To add an additional dbase call, you would have to ALSO write another field for author with unique key separate from post key and then write that to ALL post records for that author.
You would likely need to hire a custom developer to build the dbase hooks and so forth to work with theme; but probably simpler to have a custom plugin built that can do the author lookup and then the overhead for writing multiple data fields. This would be some serious custom work, unless you’re doing a multi-site setup, where each author essentially has their own mini-site (e.g., large magazines setup unique blogs per author, and then there are unique stats by author/blog as the more typical way that’s done).
For adding something like additional author fields, you would likely need to do some custom work to add to your functions.php file and register additional record fields “per user” and then you’d have to edit the author template in theme to query/echo that custom field in the per author setup to load that info.
Neither of those are capable of being done out of the box with this, or any comparable theme unless you build those features in yourself as they’re not commonly needed by most folk as “part of theme,” since you’d lose such custom info if changing themes in some cases. So, those kinds of customizations are best done outside of the theme framework, but done via both functions.php and custom data fields which are not directly tied to, or managed by, the theme.
There are numerous plugins for adding custom user fields, and then using shortcodes in your template files.
Or you can “roll your own,” as there are hundreds of articles online for adding “custom user fields” to WordPress.
ONE example:
http://wpengineer.com/2173/custom-fields-wordpress-user-profile/
Hope that helped. Obviously the theme devs can’t build custom code for you outside of minor tweaks and CSS over-rides; they don’t do full custom stuff at this time.
Might be due to the errors on your page .. check F12/console in Chrome to see errors from your ad modules. Try turning off the bad ad systems being used and see if excerpts work or not.
Two twitter errors and one serving-sys.com error so far found in one click.
Perhaps you should try turning off plugins to see which one causing the problems.
oh… doh. Yes! Stupid me. Totally forgot about that !!!
That *is* the easier way to do that ๐
Thanks, Marius.
Basic html; you wrap the link in an anchor link.
example how to:
http://www.w3schools.com/html/html_links.asp
All seem to be working now on your homepage.
WordPress > admin > appearance > widgets
WordPress docs:
http://codex.wordpress.org/WordPress_Widgets
regenerate thumbnails works well for me …
we had a site with 10,000+ images (launched in Dec 2005 on WordPress), and the “regenerate thumbnails” plugin worked well.
We also used Auto Post Thumbnail PRO for the ooooold content first time to get a featured image and/or default featured image for really old stuff with TINY images.
Make sure you up your base memory limit in the wp-config.php file (WP defaults to 40MB, but really needs 128 or 256 these days), and make sure you backup your old image folder if you want to keep a safe copy of that (which, ahem, you should be doing periodically anyway).
If you want to do best practice:
a) check the sizes of the new layout and “know” which sizes you plan to use for your modules
b) change the 3 small/medium/large sizes in the WP media settings to match 3 most common; but make sure large is not larger than size files you plan to upload
c) look in the NEW theme panel at the modules image sizes control, and turn OFF the sizes you don’t plan to use (note possible need for the preview image in search box!)
d) regenerate thumbnails
make some coffee while that’s running. ๐
Should work marvelously!
I prefer the more narrow bordered layout for Newsmag for some things; while I like the wide-screen layout for Newspaper for others.
Radu probably should make a “what’s the diff…” post someplace (like, maybe a blog or something?) ๐