Forum Replies Created

Viewing 15 replies - 136 through 150 (of 201 total)
  • Plugin Author steveush

    (@steveush)

    Hi Luca,

    Apologies, the option I mentioned is in the paid version of the plugin, I thought it was also available in the free version. This seems to be a common problem for WP users in general, even though it is not caused by our plugin, so I’ll go over your errors here and hopefully others can see how to approach this.

    OK, so onto your actual errors. I think they are being caused by a plugin called Photonic, I can’t see what the actual plugin is called but it is attempting to load a non-existent file using the following URL:

    ~/wp-content/plugins/photonic/include/scripts/third-party/.min.js?ver=19700101-00000

    The issue with the above is that the actual file name is missing, it is only showing as .min.js which is basically just the extension. So that is the first error you can see in the console and it looks like the following:

    Failed to load resource: the server responded with a status of 404 (Not Found)

    Due to the above missing file the next error in the console occurs which looks like the below:

    Uncaught TypeError: $(...).swipebox is not a function

    This is the Photonic plugin attempting to initialize one of the 3rd party plugins that were never loaded, the Swipebox plugin, so it throws an unhandled error and short circuits jQuery’s ready callback. We know this is also the Photonic plugin by the URL of the script which threw the error:

    ~/wp-content/plugins/photonic/include/scripts/front-end/build/photonic-swipebox.js?ver=20190117-120516

    There is a third error in your page being caused by another script loaded from the following URL, so I’m guessing the plugin name is something like WP 500px JS Gallery:

    ~/wp-content/plugins/wp-500px-jsgallery/js/jquery.galleriffic.js?ver=2.0.1micz

    Which looks like the below:

    Uncaught TypeError: Cannot read property 'index' of undefined

    Now I’m not sure if this last error is being caused by the issues in Photonic or not. I would disable Photonic and see if the WP 500px JS Gallery error goes away. If it does not I would disable that plugin as well.

    Thanks

    • This reply was modified 7 years, 6 months ago by steveush. Reason: Removed domain name from urls
    Plugin Author steveush

    (@steveush)

    Hi @different-thinking,

    There is some custom CSS being inserted into your page which is setting a font-size onto the pagination dots which is why the page numbers are being shown which in turn results in the strange stretched look.

    You should be able to override this conflict with your custom CSS by using the following CSS in your sites styles.css.

    .fg-paging-container .fg-dot-item .fg-dot-link {
    	font-size: 0!important;
    }

    Thanks

    Plugin Author steveush

    (@steveush)

    Hi @drag0n70,

    There are some unhandled errors being thrown on your site which in turn are blocking the jQuery ready callback from firing correctly. As the initialize for FooGallery is never being called due to the errors no loading takes place and so you don’t see the gallery.

    I would suggest resolving the actual errors and once those are done FooGallery should load correctly however you should also be able to side step the problem by using our built-in custom ready event. To use the built-in option simply open the FooGallery > Settings > Advanced tab and enable the option at the top called Custom Ready Event.

    Once that is done the gallery should load but I would still look into the other errors being thrown as they could be causing issues for other plugins.

    Thanks

    Plugin Author steveush

    (@steveush)

    Hi @belyvolk,

    No everything you did seems correct. In the snippet we used the wp_footer action to try ensure the custom script was included last in the page as it needs to come after the FooGallery scripts. Unfortunately your optimization plugin is combining all scripts and then including them only after the custom JS so they are not taking effect.

    In the snippet I provided you can see the number 999 towards the end, this specifies the priority/order the script is included in the page. I can only assume your optimization plugin is using a similar method but with a larger value for priority, bigger numbers mean the script is included lower down. Please try simply adding an additional 9 to the 999 making it 9999 and seeing if this rectifies the issue. If not try another 9 making it 99999 and so on.

    Thanks

    Plugin Author steveush

    (@steveush)

    Hi @belyvolk,

    You should be able to accomplish this with some custom JS to unbind the pass through clicks that occur on the caption. The below JS should accomplish this:

    (function(_){
    
    	if (!_) return;
    	
    	_.PortfolioTemplate.prototype.onParsedItem = _.PortfolioTemplate.prototype.onCreatedItem = function(event, template, item){
    		item.$el.find(".fg-caption").off("click.foogallery");
    	};
    
    })(window.FooGallery);

    That said it needs to be enqueued into your page to actually work. To do this you can add the following PHP snippet to your functions.php file or by using a plugin that includes snippets for you:

    function foogallery_enqueue_custom_js(){ ?>
        <script type="text/javascript">
        (function(_){
    	
    		if (!_) return;
    
            _.PortfolioTemplate.prototype.onParsedItem = _.PortfolioTemplate.prototype.onCreatedItem = function(event, template, item){
                item.$el.find(".fg-caption").off("click.foogallery");
            };
    
        })(window.FooGallery);
        </script><?php
    }
    add_action( 'wp_footer', 'foogallery_enqueue_custom_js', 999 );

    Thanks

    Plugin Author steveush

    (@steveush)

    Hi @lisaostro,

    I think I have found the issue. I’m guessing either Genesis or another plugin has changed the default WordPress paths so your /wp-admin is now something else and our Gutenberg block is still trying to use that when editing a gallery. I’ll be making some changes and get them included in the next release to resolve this issue.

    Thanks

    Plugin Author steveush

    (@steveush)

    Hi @kilianjulve,

    I’ve taken a look at your site however I am guessing you have changed the template you were using as currently everything looks good. I unfortunately can’t say why the gallery was always left aligned, I can only guess that it might be a conflict with your theme or another plugin. If you would still like to use the original template that was causing issues please setup another gallery for me using that template and send through the new url so I can take a look and see if I can spot the problem.

    Thanks
    Steve

    Plugin Author steveush

    (@steveush)

    Hi Thomas,

    1. The following CSS will allow you to adjust the size and style of the text. To get started I would recommend just changing the font-size of the title to a smaller value. The values seen below are the default ones.

    .foogallery.fg-preset.fg-sarah .fg-caption-title {
    	word-spacing: -.15em;
    	font-weight: 300;
    	font-size: 18px;
    }
    .foogallery.fg-preset.fg-sarah .fg-caption-desc {
    	letter-spacing: 1px;
    	font-size: 10px;
    }

    2. The below makes the title only appear on hover by setting the opacity to 0 and then also setting a simple transition on it so it doesn’t just suddenly appear but rather fade in very quickly in time with the rest of the caption.

    .foogallery.fg-preset.fg-sarah .fg-caption-title {
    	opacity: 0;
    	transition: opacity .35s;
    }
    .foogallery.fg-preset.fg-sarah .fg-item-inner:hover .fg-caption-title {
    	opacity: 1;
    }

    To get these styles to apply to your gallery you would need to include them in your page. Adding the above to your sites styles.css file will have it apply globally so any gallery using the Sarah preset will be modified.

    To target only one specific gallery you can use the Custom CSS meta box on the gallery edit page to have it apply to just the gallery you are editing however you would need to change the CSS selectors slightly to include the gallery’s ID. The ID is given to you in the description of the Custom CSS meta box and would look something like #foogallery-gallery-60 { }. To change the CSS selectors to use the gallery’s ID is very simple, in the above CSS where ever you see .foogallery you would replace it with your gallery’s ID, in this example #foogallery-gallery-60. So if we look at the CSS to change the font-size from question #1 it would become the following:

    #foogallery-gallery-60.fg-preset.fg-sarah .fg-caption-title {
    	word-spacing: -.15em;
    	font-weight: 300;
    	font-size: 18px;
    }
    #foogallery-gallery-60.fg-preset.fg-sarah .fg-caption-desc {
    	letter-spacing: 1px;
    	font-size: 10px;
    }

    This ensures the changes are only ever applied to the gallery with that specific ID and only when it is using the Sarah preset.

    Thanks
    Steve

    Plugin Author steveush

    (@steveush)

    Hi Beth,

    I believe I found and fixed the issue and it should be included in the next release coming in the next couple of days.

    Thanks
    Steve

    Plugin Author steveush

    (@steveush)

    Hi @artoszbart,

    In short, no, there is no built in way to invert the hover.

    That said you could possibly do it by writing your own custom CSS but that is outside the scope of our support.

    That said I do like the idea and will chat to my partner about adding it to our feature list backlog.

    Thanks

    Plugin Author steveush

    (@steveush)

    Hi All,

    These are two different issues so I’ll address each as such:

    @jacopolupi the issue is simply some custom CSS being inserted into your page which is forcing all elements to use a specific font. On line 160 of your linked page there is the following being output by another plugin, I think something along of the lines Easy Google Font Styles?

    <style id="tt-easy-google-font-styles" type="text/css">p { }
    h1 { }
    h2 { }
    h3 { }
    h4 { }
    h5 { }
    h6 { }
    * { font-family: 'Roboto Slab'!important; font-style: normal!important; font-weight: 100!important; }
    </style>

    FooBox’s icons are supplied as a font, this bit of CSS is forcing every element in the page to use the Roboto Slab font due it it applying the font using the * selector and the !important keyword. I would suggest removing this plugin or contacting it’s author about how to alter his plugins output.

    @rickmnz as it is working live but not on dev I believe the issue might be related to either the server not being configured to serve font files, I see this quite regularly. Or the issue may have been that the url’s on dev were pointing to the live assets and were denied due to a CORS error. As dev is no longer available I can’t say for certain but hopefully this can help you out if the issue reoccurs.

    @hasifrett I see yours is also working now on your site, from what you described I think the issue was similar to @rickmnz’s.

    Thanks

    Plugin Author steveush

    (@steveush)

    Hi,

    Basically the Masonry JS file is not being included in the site for some reason. We specifically include it with the Masonry template as part of FooGallery as it is a dependency. That said it looks like either the theme or another plugin might be removing it for a particular reason and we would have to look through their code to figure out why.

    I would suggest creating a staging site and then performing some testing to figure out if it is the theme or another one of your installed plugins that is removing Masonry.

    Thanks

    Plugin Author steveush

    (@steveush)

    Hi Beth,

    Unfortunately this seems like a bug that I will need to fix on my end in the JS code. The height is supposed to be calculated for each row to keep every item in each row the same height. Somehow the height for the first item is being applied to every row, this is not something that can be fixed with just some CSS.

    I’ll work on the fix and try get it included in the next release. I’ll update this post once I have some more info.

    Thanks
    Steve

    Plugin Author steveush

    (@steveush)

    Hi @elizabeth-abernathy,

    I am @steveush πŸ™‚ Could you explain the issue you are having in a bit more detail or do you have a link to a page that demonstrates the issue? At the moment I’m not 100% sure what you are asking for but once I know I’ll be able to offer some more advice.

    In the portfolio template the description should not get cut off, it should all be visible.

    Thanks

    Plugin Author steveush

    (@steveush)

    Hi @sqrmunky,

    There should be an option under the settings for the album simply called Alignment. The default value is Left, you can then select either Center or Right from the dropdown.

    Thanks

Viewing 15 replies - 136 through 150 (of 201 total)