• Resolved Benedikt Ledl

    (@benniledl)


    Hello,

    we have Advanced Post Block Pro, the problem that we have is that when we add a post then on the pages where we have the Advanced Post Block the css is not reloaded, only the html, meaning that the post pictures are the wrong ones. When we “update” the page then the css for this page is reloaded meaning it is displayed correctly.

    Either the APB plugin could somehow add the background image via html so it is reloaded on its own or it must “update” every page that these blocks are on in order to clear cache.

    We do not have any cache plugin active.

    The css that is responsible for the background image is inline:

    #apbAdvancedPosts-6f839fe0-7 .apbPostOverlay.apbPost-6521, #apbAdvancedPosts-6f839fe0-7 .apbPost .apbPostFImg-6521 {
    	background-image: url( https://domain.tld/neu/wp-content/uploads/VU_5.jpg );
    }
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Charles Cormier

    (@charlescormier)

    Hi @benniledl,

    We added the image via HTML insteed of CSS background-image.

    And released a new version. Please update the plugin to the new version.

    Thanks!

    Thread Starter Benedikt Ledl

    (@benniledl)

    Amazing, we will test and give feedback, thank you very much.

    Thread Starter Benedikt Ledl

    (@benniledl)

    Hi, we have updated but now the images are being scaled weirdly

    We achieved the original look of css background by adding:

    object-fit: cover; 

    to the css class

    .apbPost.apbPostOverlay img

    You can have a look feuerwehr-strasswalchen.at all these image carousels on the homepage come from your plugin.

    Please let me know ASAP if you can add this css, otherways we need to add it to our theme, thanks ??

    Edit: removed hyperlink

    Thread Starter Benedikt Ledl

    (@benniledl)

    I have now added the css to the theme, so if you want to preview the “broken” scaling please note that you need to remove object-fit: cover; to see it.

    Plugin Author Charles Cormier

    (@charlescormier)

    Hi @benniledl,

    There is a feature in Sidebar Settings -> Elements tab -> Feature Image -> Fitting

    By this, you can control the feature image fitting, whether it will be covered or contained.

    Thanks!

    Thread Starter Benedikt Ledl

    (@benniledl)

    Hello,

    I tried this out but nothing changes, neither in preview nor in the live site. I have deleted my browser cache. You can have a look at feuerwehr-strasswalchen.at ( I have no custom css for this in place anymore )

    Plugin Author Charles Cormier

    (@charlescormier)

    Hi,

    Did you see the notice on plugins dashboard?

    Thread Starter Benedikt Ledl

    (@benniledl)

    Hi,

    couldn’t activate because of a fatal error, do I need to deactivate the pro plugin first?:

    Warning: Constant APB_VERSION already defined in /var/home/feuerwehr-strasswalchen_at/www/neu/wp-content/plugins/advanced-post-block/plugin.php on line 17
    
    Warning: Constant APB_PLUGIN_DIR already defined in /var/home/feuerwehr-strasswalchen_at/www/neu/wp-content/plugins/advanced-post-block/plugin.php on line 18
    
    Warning: Constant APB_ASSETS_DIR already defined in /var/home/feuerwehr-strasswalchen_at/www/neu/wp-content/plugins/advanced-post-block/plugin.php on line 19
    
    Warning: Undefined variable $apb_bs in /var/home/feuerwehr-strasswalchen_at/www/neu/wp-content/plugins/advanced-post-block/plugin.php on line 29
    
    Fatal error: Uncaught Error: Call to a member function uninstall_plugin() on null in /var/home/feuerwehr-strasswalchen_at/www/neu/wp-content/plugins/advanced-post-block/plugin.php:29 Stack trace: #0 /var/home/feuerwehr-strasswalchen_at/www/neu/wp-admin/includes/plugin.php(2314): include_once() #1 /var/home/feuerwehr-strasswalchen_at/www/neu/wp-admin/plugins.php(192): plugin_sandbox_scrape('advanced-post-b...') #2 {main} thrown in /var/home/feuerwehr-strasswalchen_at/www/neu/wp-content/plugins/advanced-post-block/plugin.php on line 29

    Plugin Author Charles Cormier

    (@charlescormier)

    Hi,

    Deactivate the pro first.

    Thread Starter Benedikt Ledl

    (@benniledl)

    Perfect, thank you everything works

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘CSS not reloaded’ is closed to new replies.