• i’ve been trying to get rid of “pretty links” on my pages when i print; basically, i don’t want any parenthesized url links to show up next to the underlined link and have tried to do the “@media print…” — no success–there are so many css within a plugin, a theme, etc that I don’t know where or which one actually controls the printer friendly css. i’ve even tried to delete all references to “a[href]…” but all it does is either render the site with no styling. need help. thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mo-g

    (@mo-g)

    where are my manners…by the way…JBST theme rocks!

    Theme Author bassjobsen

    (@bassjobsen)

    hi mo-g,

    Thanks for your interesting question.
    To remove the parenthesized links you can use:

    @media print {
      a[href]:after {
        content: "";
        content: none;
      }
    }

    You can add the preceding CSS code to your styles.css or compile it into JBST’s with the built-in Less Compiler.

    https://stackoverflow.com/questions/6803250/content-vs-content-none explains why you should use both "" and none for the value of the content property.

    To be honest i never paid much attentions to the printing styles of JBST till now. I will do or the next version and your suggestion are welcome. Currently all print styles are defined by Bootstrap (wpless2css/bootstrap/print.less) Please notice that also other Bootstrap’s Less files can contain some @media print snippets, see also: https://bassjobsen.weblogs.fm/compile-twitters-bootstrap-3-without-responsive-features/. The results of the printing depends also on your browser, see: https://github.com/twbs/bootstrap/issues/12078 i can’t find other docs about printing on https://getbootstrap.com/. I think also https://codex.www.ads-software.com/Styling_for_Print can help to get the print styles perfect.

    When testing i found the results reasonable. I think points of interest should be printing side bar or not, printing or not and so on.

    Best regards,

    Bass

    Thread Starter mo-g

    (@mo-g)

    Hi Bass,

    Thank you so much. It works perfect.

    I think I like the way it prints as is, i.e., the main content first, the sidebar contents below that, and other widgets, etc. below that. Very elegant and clean. Thanks again for the quick response. But as for your next version, I would definitely have the option for printing with the “pretty urls” or not, or maybe just a simple instruction how to turn it on or off by modifying the stylesheet. Thanks again. Whew!

    Mo

    Thread Starter mo-g

    (@mo-g)

    Hi Bass,

    Just some thoughts regarding printer friendly styles:

    First of all, personally, I have an aversion for heavy-graphic websites and annoying adverts but I can’t control that. But for printing articles, for example, I wish that nytimes.com, cnn.com or huffingtonpost.com (seesh) and other news orgs and websites would employ a really printer friendly css for printing articles.

    So as a suggestion for your next JBST theme version regarding print styles, I would have: (a) everything be in black and white (much like what your jbst print.css does) and of course no urls, (b) the option to not print the sidebar (like you said) or non-essentials links and graphics and have the content expand to full width nicely , (c) basically make it like an e-book format.

    Those are my suggestions. I might have more. Also as an aside note and out of curiosity and maybe you may know, is there or will there be a complete plugin that does the cms nicely, have captcha, theme it so that wordpress dashboards doesn’t appear for user members (I use Theme My Login plugin), control other attributes in wp admin, like getting rid of the bio section which I use No-Bio plugin for that, etc. payment gateways, geolocation–all this possible in one complete plugin … or am I asking for too much? I would definitely buy a plugin that can do all of that–Woocommerce? sheesh, kinda complicated, but I’m testing it.

    Ok these are just some of my thoughts. Thanks again.

    Mo

    Thread Starter mo-g

    (@mo-g)

    oops, exclude nytimes.com on the above. Actually nytimes.com does exactly what I would like all other websites to do with regard to printer friendly…beautiful printer friendly rendering of articles.

    Theme Author bassjobsen

    (@bassjobsen)

    Hi

    Thanks for your additional feedback. I have add some print settings to the customizer (“Print Side bars”, “Print Footer” and “Do not print URLs after Hyperlink texts”). You can test these setting with the latest version on GitHub, please download: https://github.com/bassjobsen/jbst/archive/master.zip

    Side bars can not positioned in everywhere in the page because CSS can’t change the HTML structure. But some swapping should be possible: https://stackoverflow.com/questions/18542303/possible-to-achieve-this-mobile-desktop-layout-using-bootstrap-or-other-grid/18547041

    Also not print the footer column but add the copyrights (on every page) seems interesting for future releases.


    About your CMS question(s). Personally i think using plugins is the way to go. Just this modular of working makes WordPress flexible. I allow you to choose which plugin to use and developers can focus on things specific functionality. I you don’t like the captcha A plugin you can try captcha B. With JBST i also try to focus on the core theme functions. For additional functions you can find a (short) list of recommended plugin here: https://github.com/bassjobsen/jbst

    Currently many web shop are built with JBST and WooCommerce (also JigoShop and WPeCommerce should work). Depending on your needs also more straightforward plugins can be used with JBST. https://fonts.jbst.eu/ e.g. uses Easy Digital Downloads (https://easydigitaldownloads.com/) and wpLike2Get (https://markusdrubba.de/wordpress/wplike2get/)

    Recently i got other question about customization of the Dashboard. I wonder if JBST should offer the functions or a plugin can help in this case too. For version 3 of JBST, the framework / core function will get more attention. See also: https://justintadlock.com/archives/2010/08/16/frameworks-parent-child-and-grandchild-themes. JBST’s core should be released separated from the current parent theme. Currently you can already update the core independent of your theme, but this update strategy should be more visible.
    You can build your own version and only update the core. This customized version can be bundled with plugins and template for customization of the Dashboard. Also see: https://premium.wpmudev.org/blog/create-a-custom-wordpress-login-page/. Please send me a e-mail ([email protected]) if you need further details.

    Best regards,

    Bass

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘possible to control printer friendly through JBST theme?’ is closed to new replies.