Forum Replies Created

Viewing 15 replies - 1 through 15 (of 32 total)
  • Hi Marco

    I’ve come across the same issue with the Edge Browser on our website.

    On the Edge browser, when the drop down menu is clicked, the drop down expands briefly but then closes.
    If the drop down menu is pressed and held, the “Open in new tab” etc. window opens. But where as in Android this would open and keep open the drop down menu ready for selection, in Edge it just selects the drop down menu header text.

    I have a localhost test environment set up on a windows tablet running the Edge browser under Win10. Your plugin is active and sorts out the drop down issue with Android in the chrome browser (development mode).

    Am happy to assist in getting Edge compatibility for your plugin
    https://www.ads-software.com/plugins/black-studio-touch-dropdown-menu/

    Cheers
    Chris

    Thread Starter kizora

    (@kizora)

    Excellent! thanks very much Ov3rfly. That code worked ??
    Cheers, Chris

    Thread Starter kizora

    (@kizora)

    Hi Ov3rfly

    Sorry, should have copied the whole php file. That } is the end of the media queries bit. Here’s the whole function.php

    <?php
    add_action( ‘after_setup_theme’, ‘et_setup_theme’ );
    if ( ! function_exists( ‘et_setup_theme’ ) ){
    function et_setup_theme(){
    remove_action( ‘wp_head’, ‘feed_links’ );
    remove_action( ‘wp_head’, ‘rsd_link’);
    remove_action( ‘wp_head’, ‘wlwmanifest_link’);
    remove_action( ‘wp_head’, ‘index_rel_link’);
    remove_action( ‘wp_head’, ‘parent_post_rel_link’);
    remove_action( ‘wp_head’, ‘start_post_rel_link’);
    remove_action( ‘wp_head’, ‘adjacent_posts_rel_link’);
    remove_action( ‘wp_head’, ‘wp_generator’);

    remove_action(‘wp_head’, ‘print_emoji_detection_script’, 7);
    remove_action(‘wp_print_styles’, ‘print_emoji_styles’);
    remove_action(‘admin_print_scripts’, ‘print_emoji_detection_script’ );
    remove_action(‘admin_print_styles’, ‘print_emoji_styles’ );

    require_once(TEMPLATEPATH . ‘/epanel/custom_functions.php’);
    require_once(TEMPLATEPATH . ‘/includes/functions/comments.php’);
    require_once(TEMPLATEPATH . ‘/includes/functions/sidebars.php’);
    load_theme_textdomain(‘ElegantEstate’,get_template_directory().’/lang’);
    require_once(TEMPLATEPATH . ‘/epanel/options_elegantestate.php’);
    require_once(TEMPLATEPATH . ‘/epanel/core_functions.php’);
    require_once(TEMPLATEPATH . ‘/epanel/post_thumbnails_elegantestate.php’);
    include(TEMPLATEPATH . ‘/includes/widgets.php’);
    require_once(TEMPLATEPATH . ‘/includes/functions/additional_functions.php’);
    }
    }
    // Add MEDIA QUERIES ………….
    add_action(‘wp_head’,’et_portfoliopt_additional_styles’,100);
    function et_portfoliopt_additional_styles(){ ?>
    <style type=”text/css”>
    #et_pt_portfolio_gallery { margin-left: -15px; }
    .et_pt_portfolio_item { margin-left: 21px; }

    .et_portfolio_small { margin-left: -40px !important; }
    .et_portfolio_small .et_pt_portfolio_item { margin-left: 38px !important; }

    @media only screen and (max-width:720px){
    .et_portfolio_small { margin-left: 0px !important; }
    .et_portfolio_small .et_pt_portfolio_item { margin-left: 5% !important; }
    }

    @media only screen and (max-width:359px){
    .et_portfolio_small { margin-left: -4px !important;}
    .et_portfolio_small .et_pt_portfolio_item { margin-left: 2px !important; }
    }

    .et_portfolio_large { margin-left: -8px !important; }
    .et_portfolio_large .et_pt_portfolio_item { margin-left: 6px !important; }
    </style>
    <?php }

    function my_wpcf7_ajax_loader( $url ) {
    return str_replace( ‘https://&#8217;, ‘//’, $url );
    }
    add_filter( ‘wpcf7_ajax_loader’, ‘my_wpcf7_ajax_loader’, 10, 1 );

    function register_main_menus() { register_nav_menus( array( ‘primary-menu’ => __( ‘Primary Menu’ ), ‘secondary-menu’ => __( ‘Secondary Menu’ ) ) );};
    if (function_exists(‘register_nav_menus’)) add_action( ‘init’, ‘register_main_menus’ );

    if ( ! function_exists( ‘et_list_pings’ ) ){ function et_list_pings($comment, $args, $depth) { $GLOBALS[‘comment’] = $comment; ?> <li id=”comment-<?php comment_ID(); ?>”><?php comment_author_link(); ?> – <?php comment_excerpt(); ?> <?php }}
    add_action(‘template_redirect’,’check_listing’);
    function check_listing() {
    if (isset($_REQUEST[“option-listing”])) {
    $category_link = get_category_link( $_REQUEST[“option-listing”] );
    wp_redirect($category_link);
    }
    }
    function SearchFilter($query) {
    if ($query->is_search) {
    $query->set(‘post_type’, ‘post’);
    }
    return $query;
    }

    if( !is_admin() ) add_filter(‘pre_get_posts’,’SearchFilter’);

    add_filter(‘body_class’,’et_additional_body_class’);
    function et_additional_body_class($classes) {
    if ( !is_home()) $classes[] = ‘index’;

    return $classes;
    } ?>

    Thread Starter kizora

    (@kizora)

    Hi Takayuki,
    It is set to cover everything but I wonder whether it’s resolving the ajax-loader.gif url after cloudflare has converted http to https?

    In the plugins functions.php file there is this code:-

    function wpcf7_ajax_loader() {
    $url = wpcf7_plugin_url( ‘images/ajax-loader.gif’ );

    return apply_filters( ‘wpcf7_ajax_loader’, $url );
    }

    Could I just hard code the https: ? by changing it to:

    $url = ( “https://thebeautifulhousecompany.com/wp-content/plugins/contact-form-7/images/ajax-loader.gif&#8221; );

    Cheers
    Chris

    Thread Starter kizora

    (@kizora)

    Hi Ov3rfly
    I added that code but got a server error 500 when I tried to update the contact page in wordpress admin –
    “The website encountered an error while retrieving https://thebeautifulhousecompany/wp-admin/post.php. It may be down for maintenace or configured incorrectly”
    It wasn’t down for maintenance.

    I added the code here

    <?php }

    function my_wpcf7_ajax_loader( $url ) {
    return str_replace( ‘https://&#8217;, ‘//’, $url );
    }
    add_filter( ‘wpcf7_ajax_loader’, ‘my_wpcf7_ajax_loader’, 10, 1 );

    function register_main_menus() {
    register_nav_menus(
    array(
    ‘primary-menu’ => __( ‘Primary Menu’ ),
    ‘secondary-menu’ => __( ‘Secondary Menu’ )
    )
    );
    };

    Cheers
    Chris

    Thread Starter kizora

    (@kizora)

    Hi Takayuki
    Yes, I do have Cloudflare set to overwrite all link URLS with https. Everything else gets overwritten ok except for this plugin and an old cforms plugin where I had to hard code the https

    Hi Ov3rfly
    Thanks for the code – what does it do?

    Cheers
    Chris

    Thread Starter kizora

    (@kizora)

    Hi

    I use the quickcache plugin.

    The SSL is enabled via Cloudflare, it is set to divert all http: requests to https:

    Cheers
    Chris

    Hi,

    Problem seems to be that by default Quickcache sends no-cache headers which Cloudflare dutifully obeys.

    It may work properly if you set “Allow Double-Caching In The Client-Side Browser?” in Quickcache to “true”

    Cheers
    Chris

    Hi Jaabie,

    What issues are you getting as I’m using Quick Cache and looking at Cloudflare?

    Cheers
    Chris

    Thread Starter kizora

    (@kizora)

    Just a thought …. I don’t allow comments on my posts (under the discussion tab in edit posts). Could that be why https://thebeautifulhousecompany.com/comments/feed/ doesn’t exist but https://thebeautifulhousecompany.com/feed/ does?

    Thread Starter kizora

    (@kizora)

    Hi Jan,

    The remove_action(s) did stop the 404’s occurring for comments/feed … for a few weeks.

    I had tried the usual remove plugins /2011 theme.

    https://thebeautifulhousecompany.com/

    I suppose I could create a comments/feed page to stop the 404’s ? but would rather disable it with wordpress functionality if possible.

    Thanks, Chris

    Thread Starter kizora

    (@kizora)

    Hi,

    I thought I’d fixed it by adding the following to functions.php

    remove_action( ‘wp_head’, ‘feed_links’ );
    remove_action( ‘wp_head’, ‘rsd_link’);
    remove_action( ‘wp_head’, ‘wlwmanifest_link’);
    remove_action( ‘wp_head’, ‘index_rel_link’);
    remove_action( ‘wp_head’, ‘parent_post_rel_link’);
    remove_action( ‘wp_head’, ‘start_post_rel_link’);
    remove_action( ‘wp_head’, ‘adjacent_posts_rel_link’);
    remove_action( ‘wp_head’, ‘wp_generator’);

    which seemed to stop the 404’s for a while …… but they’re occurring again now !!

    Anyone know why?

    Thanks,
    Chris

    Forum: Fixing WordPress
    In reply to: IE display error
    Thread Starter kizora

    (@kizora)

    code is here:

    https://pastebin.com/92jXesxn

    can’t paste images there though….

    Cheers
    Chris

    Thread Starter kizora

    (@kizora)

    I went back to 3.0.2 and did incremental upgrades.

    At 3.0.6 the search works properly, but when I upgraded to 3.1, that’s when the problem described above starts happening.

    The wordpress database changed from 15477 (3.0.6) to 17056 (3.1).

    Should I report this as an error here?
    https://core.trac.www.ads-software.com/newticket

    Cheers
    Chris

    Thread Starter kizora

    (@kizora)

    Hi,

    The IIS version has 3 extra files:-

    install.sql
    manifest.xml
    parameters.xml

    I did a compare between 3.0.2.zip and 3.0.3.zip and only 4 files have changed:-
    wp-admin\includes\update-core.php
    wp-includes\version.php
    readme.html
    xmlrpc.php

    So, I only need to replace these files?

    Thanks,
    Chris

Viewing 15 replies - 1 through 15 (of 32 total)