Home User profile
tagDiv Member
Christopher is a long time WordPress user. Anything else you need to know is private ;-) I *do not* work for TagDiv, but I've been using their themes since late 2013.
simchris
tagDiv Member

Ah. This is likely related to the user roles question, where only super admin/user should be able to see that and not “contributors” … or “editors” ….

We use a plugin to hide all the admin stuff from anybody who is an editor or contributor, so they cannot install plugins, edit the admin stuff, etc. Not sure that would work with that popup.

that is a very good question !

I’m assuming somebody has tried this logging in as a role lower than admin, to see if the popup for install is still there?

Good question for Lucian, Marius, et al. Sorry I don’t know answer. 🙂

simchris
tagDiv Member

I think you just click the [x] icon on right side of the dialog to “hide it.”

simchris
tagDiv Member

In my case I skipped 4.3 so will likely go to 4.4 from 4.2.2 … 🙂

simchris
tagDiv Member

Did you clear all your caches prior to update? Delete old theme, not overwrite new on top of old.

Also, try resaving your mega menu settings, and re “save” any widget from appearance which is not working.

This usually solves that kind of thing for me; might not work for you, of course.

simchris
tagDiv Member

Ah, yes… some plugins and widgets add in code to the main WP admin panel, and that has changed quite a bit since WP 3.9, and so many plugins written prior to that which have not been updated may be putting in javascript/ajax which might be breaking the overall admin system in some way, such as loading duplicate version of jquery, etc.

If it’s one plugin at fault, presumably you could see if they have updated version, or, at least for the development phase of website, turn the plugin off to setup your site, then when “done” turn the plugin back on.

Not an elegant workaround, but that’s the only advice I had if it’s not the browser, or the php.ini issue.

simchris
tagDiv Member

Yup. As I said, likely need a plugin … many of them out there. 🙂

simchris
tagDiv Member

Not part of the theme; this is a wordpress and page request issue; so you likely need to Google that, as in this discussion on the WordPress site:
https://wordpress.org/support/topic/redirecting-404-errors-to-410

Probably you can clone the 404 template to be 410, but that has nothing to do with what headers are sent back to Google, etc.; that is done outside of the theme, and likely must be done via rewrite rules, or custom code to specify an error page and serve 410 response vs 404.

Might be a plugin for this, or you’d have to put in some custom code in the htaccess file to specify where to send folks asking for DOA page to 410 error message and send back 410 response vs 404 response.

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

You can upgrade directly. I skip every other update myself 🙂

simchris
tagDiv Member

Not simply since the javascript is loaded from Google from the code they provide you and messing with that can run into license issues.

I know one person (friend) using this, but I have *not* tested, and might not work with the built in optimizations of the theme for loading the AdSense code. Might work if loading the ads in your own widgets, like sidebar box.

http://www.itthinx.com/plugins/itthinx-lazyloader-demo

simchris
tagDiv Member

For your site did you
1) setup the gzip/deflate for your server to serve compressed content / mandatory
2) did you add expiration data in your htaccess (Apache) file or similar for NGINX / mandatory
3) did you optimize your images for best size/speed
4) did you use functions.php to remove ?=123 version queries and set better image optimization default for WordPress; then perhaps regenerate thumbnails
5) remove external elements as needed, such as using social media counters, jetpack, or other systems which call on outside websites for data, slowing page down?
6) did you optimize your database using wp-optimize

Many of these items are covered in detail in the Page Speed sticky thread.

Items 1 and 2 are good for at least 20 points alone.

simchris
tagDiv Member

@adhi
hiding the toolbar top of page is easy; but not hiding all the admin functions, dashboard, footers, and other elements that say “WordPress.” This can only be done via user roles and a plugin which hacks the various elements to remove the stuff like “Thank you for creating with WordPress” bottom of the page; or hiding all the stuff in the left sidebar based on user level.

I FOUND the plugin we were using for this very task, and it is this:
https://wordpress.org/plugins/white-label-cms/

simchris
tagDiv Member

You need to have image cropping turned “on” in order to make thumbnails all the same size, otherwise they resize the images to fit width but not height, which is what you seem to be doing. And remember WP cannot enlarge thumbs, only reduce them to be smaller than what you upload.

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

Wellll…… you can supposedly specify which area to crop from in the new media editor in WordPress if they enabled that, and we used to use a plugin for that, which I am going to plead stupid on at the moment.

I think it was this one!
https://wordpress.org/plugins/manual-image-crop/

This seems very popular
https://wordpress.org/plugins/post-thumbnail-editor/

for example, have not tested this one
https://wordpress.org/support/plugin/my-eyes-are-up-here

For consistent thumbnails, based on files you upload, remember that WP will reduce images to fit those specified by the theme and the three sizes in the media settings, but will NOT enlarge them. You need to use the thumbnail upscale plugin which we use here in addition to the auto post thumbnail pro plugin (paid).

Not sure if that helps.

simchris
tagDiv Member

@dl_rod

Hi; we used to deal with this in QuarkXPress for print publishing back in the day.

Back then we’d be able to use text reflow to fit a space, then we’d sometimes have to adjust image size to even things out, and in some cases cut words from story to fit.

Other option commonly used is to let there be blank space in the final column at bottom.

So


_  _  _
_  _  _
_  _

but hard to do since the text can resize based on viewport, and not all letters are the same EM width unless you use a font like courier, so as text size changes the height of each column changes too.

There are some pretty advanced plugins which handle this kind of thing better, but generally it’s a bit hit or miss since text is not “static” on the web.

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

I have this issue with Internet Explorer; but not with Chrome.

Might not be same issue, but there you are.

I found that also “scrolling” down to bottom of page to fully load everything, then scrolling back up then hitting save sometimes works – don’t ask me why 🙂

simchris
tagDiv Member

My pleasure … I don’t actually work here, just helping out from time to time. 🙂

(Lots of people have helped me the past 20 years building websites, and 10 years on WordPress, so I try to give back a little bit.)

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

Dunno. I’ve just run into this before. Sometimes it’s the IP your web server is loading the content from not being allowed to load certain content. eg., an Indian company with server in UK, might not be able to load content from Greece, if the content is limited to certain countries.

This is common with music videos, or movies, trailers, etc., as a country might not allow some kind of content to be loaded due to social mores, etc.

You can “Google” this topic, or read the FAQs on YouTube about licensed and limited content.

As I’ve said — this has happened to us before, and we basically just chose not to use content which doesn’t load, since it just won’t load 🙂

simchris
tagDiv Member

You will likely need a plugin for this, as it’s a common WordPress issue, not related to the theme in any way.

You will need to change logo for login page. More tricky to hide the fact the URL shows wp-admin in the URL.

WPMU has some good plugins for this kind of thing. Also check the wordpress.org plugin repository.

Basically you should do Google search and explore various options for changing the WordPress experience as it can be a little complex. We did this for couple of sites, and then that broke with WP 3.9 (sigh).

Anyway, you may find various posts online like this one useful:
http://www.jasonbobich.com/wordpress/hiding-the-wordpress-admin-panel-to-your-subscribers/

Another kind soul here may have better more specific answer for you, but this is part of learning to use WordPress for webdev. Again your query not related to the theme or theme support, as “hiding wordpress” is part of modifying the wordpress functionality, but perhaps the above might have helped in some way.

We used to use a plugin which would hide various things in the layout, based on “user roles” where superuser could see everything, but moat others would not see any of the WordPress stuff.

simchris
tagDiv Member

Perfect example, the second link you provided is “not available in your country” when I go to visit it (I’m in USA).

So, it does have some “restrictions” on its use.

First video works for me just fine.

simchris
tagDiv Member

Site looks really nice by the way 🙂

simchris
tagDiv Member

@dl_rod

anecdotal:

You probably want to change the text on your website from
Contact us: contact@tagdiv.com
at some point, too, when refining your content.

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

We don’t use jetpack as it’s a major slowdown to the site, waiting for all that stuff to load from automattic’s servers. But some cool stuff. Mainly it’s a way of adding features from wordpress.com to self hosted sites. But watch the warnings from PageSpeed Insights pile up! 😉

simchris
tagDiv Member

Some videos may have restrictions on use, or may not be allowed in specific countries, or there may be issue with YouTube timeout. IF only “certain” videos don’t work, often it’s an issue with those videos, in my own experience. Check the video itself for any notes about restriction, or try embedding the video alone in a post to see if it loads on your site, as that might tell you right there if it’s not able to be loaded separate from any playlist function. 🙂

simchris
tagDiv Member

COPYING THIS FROM OTHER THREAD FOR THOSE WHO HAVE ASKED ME COUPLE OF TIMES ABOUT REMOVING GOOGLE FONTS FROM FUNCTIONS.php … ref: Newspaper 4.2/4.2.2 — not tested with 4.3, but presumably same idea:

————copied from other thread ————–

Hi,
okay I think in 4.2 here is what my edited functions.php looks like
lines 38 -> 59

/*  ----------------------------------------------------------------------------
    CSS - front end
 */

function td_load_css() {

    //google fonts
    if ((defined('TD_DEPLOY_MODE') and (TD_DEPLOY_MODE == 'demo' /*or TD_DEPLOY_MODE == 'dev' */)) or defined('TD_SPEED_BOOSTER')) { //on demo and dev we load only the latin fonts
        //modify this collection if you want to optimize the fonts loaded
        //collection url -> : http://www.google.com/fonts#ReviewPlace:refine/Collection:PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700
        //wp_enqueue_style('google-font-rest', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700'); //used on menus/small text
    }

    //add the google style link for fonts used by user
    $td_fonts_css_files = td_util::get_option('td_fonts_css_files');
    if(!empty($td_fonts_css_files)) {
        wp_enqueue_style('google-fonts-style', td_global::$http_or_https . $td_fonts_css_files);
    }

    //bootstrap - custom built - it was generated via compilation of /external/bootstrap-master/less/bootstrap.less

You will note I didn’t remove 44-49, I commented it out with //

I did not remove the code which is there *if* somebody selects fonts from the admin panel, which I think is what you were doing; and then it would crash.

And I DELETED this

        $td_user_fonts_list = array();
        $td_user_fonts_db = td_util::get_option('td_fonts');
        if(!empty($td_user_fonts_db)) {
            foreach($td_user_fonts_db as $td_font_setting_key => $td_font_setting_val) {
                if(!empty($td_font_setting_val) and !empty($td_font_setting_val['font_family'])) {
                    $td_user_fonts_list[] = $td_font_setting_val['font_family'];
                }
            }
        }

        if(!in_array('g_438', $td_user_fonts_list)) {//'g_438', //Open Sans
            wp_enqueue_style('google-font-opensans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on menus/small text
        }

        if(!in_array('g_617', $td_user_fonts_list)) {//'g_617', //Ubuntu
            wp_enqueue_style('google-font-ubuntu', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic&subset=latin,cyrillic-ext,greek-ext,greek,latin-ext,cyrillic'); //used on content
        }

        if(!in_array('g_453', $td_user_fonts_list)) {//'g_453', //PT Sans
            wp_enqueue_style('google-font-pt-sans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic&subset=latin,cyrillic-ext,latin-ext,cyrillic'); //used on content
        }

        if(!in_array('g_445', $td_user_fonts_list)) {//'g_445', //Oswald
            wp_enqueue_style('google-font-oswald', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Oswald:400,300,700&subset=latin,latin-ext'); //used on content
        }

        if(!in_array('g_521', $td_user_fonts_list)) {//'g_521', //Roboto
            wp_enqueue_style('google-roboto-cond', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on content
        }

        if(!in_array('g_639', $td_user_fonts_list)) {//'g_639', //Vollkorn
            wp_enqueue_style('google-vollkorn', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Vollkorn:400italic,700italic,400,700'); //used on quoates classic
        }
    }

simchris
tagDiv Member

Hi,
okay I think in 4.2 here is what my edited functions.php looks like
lines 38 -> 59

/*  ----------------------------------------------------------------------------
    CSS - front end
 */

function td_load_css() {

    //google fonts
    if ((defined('TD_DEPLOY_MODE') and (TD_DEPLOY_MODE == 'demo' /*or TD_DEPLOY_MODE == 'dev' */)) or defined('TD_SPEED_BOOSTER')) { //on demo and dev we load only the latin fonts
        //modify this collection if you want to optimize the fonts loaded
        //collection url -> : http://www.google.com/fonts#ReviewPlace:refine/Collection:PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700
        //wp_enqueue_style('google-font-rest', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700'); //used on menus/small text
    }

    //add the google style link for fonts used by user
    $td_fonts_css_files = td_util::get_option('td_fonts_css_files');
    if(!empty($td_fonts_css_files)) {
        wp_enqueue_style('google-fonts-style', td_global::$http_or_https . $td_fonts_css_files);
    }

    //bootstrap - custom built - it was generated via compilation of /external/bootstrap-master/less/bootstrap.less

You will note I didn’t remove 44-49, I commented it out with //

I did not remove the code which is there *if* somebody selects fonts from the admin panel, which I think is what you were doing; and then it would crash.

And I DELETED this

        $td_user_fonts_list = array();
        $td_user_fonts_db = td_util::get_option('td_fonts');
        if(!empty($td_user_fonts_db)) {
            foreach($td_user_fonts_db as $td_font_setting_key => $td_font_setting_val) {
                if(!empty($td_font_setting_val) and !empty($td_font_setting_val['font_family'])) {
                    $td_user_fonts_list[] = $td_font_setting_val['font_family'];
                }
            }
        }

        if(!in_array('g_438', $td_user_fonts_list)) {//'g_438', //Open Sans
            wp_enqueue_style('google-font-opensans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on menus/small text
        }

        if(!in_array('g_617', $td_user_fonts_list)) {//'g_617', //Ubuntu
            wp_enqueue_style('google-font-ubuntu', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic&subset=latin,cyrillic-ext,greek-ext,greek,latin-ext,cyrillic'); //used on content
        }

        if(!in_array('g_453', $td_user_fonts_list)) {//'g_453', //PT Sans
            wp_enqueue_style('google-font-pt-sans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic&subset=latin,cyrillic-ext,latin-ext,cyrillic'); //used on content
        }

        if(!in_array('g_445', $td_user_fonts_list)) {//'g_445', //Oswald
            wp_enqueue_style('google-font-oswald', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Oswald:400,300,700&subset=latin,latin-ext'); //used on content
        }

        if(!in_array('g_521', $td_user_fonts_list)) {//'g_521', //Roboto
            wp_enqueue_style('google-roboto-cond', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on content
        }

        if(!in_array('g_639', $td_user_fonts_list)) {//'g_639', //Vollkorn
            wp_enqueue_style('google-vollkorn', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Vollkorn:400italic,700italic,400,700'); //used on quoates classic
        }
    }

  • This reply was modified 11 years by simchris.
Viewing 25 posts - 8,201 through 8,225 (of 9,335 total)