Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter adonix

    (@adonix)

    Thank you for your support.
    I did input the wp-content directory in the variable and problem stayed the same.
    I don’t know what is going wrong here. But unless you have other options for me to test, I’ll stick with my hack ?? The problem is that I need to apply it after each AO update.

    So,I added this to wp-config:
    define("AUTOPTIMIZE_WP_CONTENT_NAME", "https://static.site.com/")
    and the site gets broken.
    Looking in the console window, I find this error appearing:

    Uncaught TypeError: $nocnflct.scrollUp is not a function
        at HTMLDocument.<anonymous> ((index):3)
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at Function.ready (jquery.js:2)
        at HTMLDocument.K (jquery.js:2)

    Disabling the added line put things back in order. Am not sure what’s the problem here.

    Hello,

    I updated to AO 2.2.1 and part of my site broke duo to CSS.
    In fact, I am hosting my wp-content folder on a static subdomain “static.site.com”. Everything worked fine except for theme images and font not loading. While checking the error, I found that the plugin converted relative img/font url to full ones while adding “wp-content” in the path. Ex: background-image: url(//static.image.com/wp-content/themes/theme/images/icons.png); instead of background-image: url(//static.image.com/themes/theme/images/icons.png);

    I managed to overcome the problem (in a brutal way) by changing ‘AUTOPTIMIZE_WP_CONTENT_NAME’ like this:

    if (!defined('AUTOPTIMIZE_WP_CONTENT_NAME')) { define('AUTOPTIMIZE_WP_CONTENT_NAME',chop('/'.wp_basename( WP_CONTENT_DIR ),'wp-content/')); }

    I am no expert in these stuff, but it seems that WP is returning an incorrect path for WP_CONTENT_DIR variable. I have googled similar problem but could not find another solution. So I am not sure if I should report this bug to WP.

    Could you please point out another less brutal solution?

    Regards

    Ok, I came up with a hack that works to my liking on “Simple Slider with Slide Info V2”.
    it does as explained previously : change the layout of the slider on lower screen size devices.

    @media (max-width: 800px){
      .master-slider{
       	margin: 0px !important;
      }
    
      .ms-slide-info {
        margin-top: 10px;
        position: relative;
        min-height: 100px;
        width:100% !important;
        right:0px !important;
      }
    
      .ms-timerbar {
        position: relative;
      }
    }

    This code have been tested with boxed layout only and not with full width slider.
    Hope it helps ??

    Regards

    Yes, same problem here although I have already requested support for the same issue in another thread.

    I think that the problem can be solved if the slider switched from “Slider with Slide Info V2” to “Slider with slide Info” when on mobile. this way, both slider and text will show correctly.

    I have no big knowledge in css and php, but it could’ve been easy to apply custom style if “Style” of “Div” was included in main css.

    <div class="ms-slide-info ms-dir-v ms-align-right" style="right: -270px; width: 250px;">

    by overriding ms-dir-v ms-align-right and “Style” the slider can become better responsive on mobile. However, i do not know how to override the “Style” part of DIV. I think it is in php code ??

    Any help on the matter is highly appreciated

    Regards

    I second that. I have the same problem when slider info is shown on the right.
    slider size decreases when resizing the screen, but text stays the same. At some point slider nearly disappear while text stays and overlaps below text of site.
    I was hoping if the slider can switch slider info position from the right of the slider to the bottom (like another theme) to adjust for screen size. Can you please advise if it is possible?

Viewing 7 replies - 1 through 7 (of 7 total)