Forum Replies Created

Viewing 15 replies - 151 through 165 (of 214 total)
  • Thread Starter gore.m

    (@gorem)

    It doesnt have to be a separate page. Ajax sounds perfect, May I ask for an example, Im not Java guru 🙁
    Thanks you

    Thread Starter gore.m

    (@gorem)

    Thanks you.

    Yes, new template was my first thought, but problem is that this page should be google and user accessible… so without header and footer its not ideal…

    As I can see, it is not so easy, as I thought it could be, so Ill try explain whole thing:

    I have Woocommerce product page with Woocommerce product addon label, I need add button after Woo product addon label that should act like “tooltip” on click. Lightbox should load content of one concrete page.

    I ended with this function:

    ?>
    <?php
    function fl_javascript_in_wp_footer($pid){
        if ( is_product() ) {	        
    
    ?>	
    <script type='text/javascript'>
    $(function () {
        $('<a class="venobox more-link" data-vbtype="iframe" href="<?php
    echo esc_url( get_permalink( get_page_by_path( 'tool-tip' ) ) ); ?>"> Tool-tip</a>').appendTo('.product-addon-add-accessory label');
    });
    </script>
    <?php
     }
    }
    add_action( 'wp_footer', 'fl_javascript_in_wp_footer' );

    Because Tool-tip page is a big part of content, I wouldnt want insert it directly to every produc page.

    So, Is there any other solution?
    Thanks you

    Thread Starter gore.m

    (@gorem)

    Thanks you. Its developers perspective.
    So you mean, insert post content to page and than work with it?
    Isnt there way to get direct URL to post content? (I Dont need / want insert content to page, I want open pop up on button click.)

    • This reply was modified 8 years, 6 months ago by gore.m.
    Thread Starter gore.m

    (@gorem)

    OK I found out now that setting under Permalink Settings > Common Settings > Custom Structure > is causing this problem. I had set "/blog/%postname%/".
    After removing “/blog/”from Custom Structure, 404 error disappear.

    But I would like to have set “/blog/%postname%/”… where conflict come from?

    Thanks you

    Thread Starter gore.m

    (@gorem)

    @gappiah Thanks you, Im using bootstrap .-)

    @anevins Thanks you, in CSS Im mobile first.

    Im sorry. I was not clear… my problem seems not to be in CSS and small screens, but in my workflow between Photoshop X live web page X large screens.
    Because design is not “compact” during changing screen sizes.

    Here is large screen size statistic from our web site (most used to less used):
    1366×768
    1920×1080
    1440×900
    1536×864
    1600×900
    1280×1024
    1280×720

    I thought it is good idea to determine/decide for which screen resolution I will do design (in Photoshop), so I decided 1300px, but result is not pretty now on (most used) 1366×768 screen.

    So:
    – For which max-resolution are you designing web pages (in Photoshop), is there an “large screens starting width” standard?
    – Are you fixing container/wrap width to max-width based on Photoshop design?
    – If no…how deal with resolutions above resolution you chosed (like 1920×1080, 1440×900, 1536×864, 1600×900)?
    – If 1366×768 is most used screen resolution, is it helpfull/make a sence to switch my monitor (when Im in Photoshop) to that resolution?
    – Is there special workflow (starting in Photoshop) if fluid layout is used?

    Thanks you

    Thread Starter gore.m

    (@gorem)

    Thanks you

    Thread Starter gore.m

    (@gorem)

    Thanks you.
    Because Im in web developing phase, will I need – because of this problem – rework my work? …or will next plugin update covering error (in database) without causing future problems?

    Thanks you

    Thread Starter gore.m

    (@gorem)

    Im on localhost :-/
    What can to be associated to this cause?
    I have only `html {
    overflow-y: scroll;
    }`
    but doesnt matter if it is “on” or switched “off”.

    Inside I have

    .full-bg {
        width: 90%;
        padding: 3em;
        margin: 19px auto 0 auto;
    }

    and

    .wrap {
        margin-right: auto;
        margin-left: auto;
        max-width: 1300px;
    }

    Thanks you

    Thread Starter gore.m

    (@gorem)

    WOW! It is working .-) Thanks you .-)

    We already discussed it, but Im not sure I understood well,… Im curious where WP is taking names of those classes "attachment-medium size-medium wp-post-image". Are they WP standards? Ive noticed, that they change if I switch to other theme.

    Thread Starter gore.m

    (@gorem)

    Thanks you.
    Well, any function that we tried doesnt work completely.

    Your last function

    function strip_entire_img_class($html) {
        return preg_replace('/(<img .*class=")(.+?)"/', '$1"', $html);
    }
    add_filter('the_content', 'strip_entire_img_class');

    Strips classes only if image is inserted by yours way echo get_image_tag( 1104, 'test image', // etc.... or if I upload image and than clink on its own permalink – there are no classes.

    But any of functions we tried doesnt work, if image is inserted as featured image for post.

    Thread Starter gore.m

    (@gorem)

    Thanks you, Ive tried suggested function, but it doesnt work again.

    Here is result / full html:

    <img width="433" height="433" src="http://localhost/wp-content/uploads/2017/03/Facebook-960x960-grid_0005_DSC_1462-433x433.png" class="attachment-medium size-medium wp-post-image" alt="" srcset="http://localhost/wp-content/uploads/2017/03/Facebook-960x960-grid_0005_DSC_1462-433x433.png 433w, http://localhost/wp-content/uploads/2017/03/Facebook-960x960-grid_0005_DSC_1462-150x150.png 150w, http://localhost/wp-content/uploads/2017/03/Facebook-960x960-grid_0005_DSC_1462-768x768.png 768w, http://localhost/wp-content/uploads/2017/03/Facebook-960x960-grid_0005_DSC_1462-640x640.png 640w, http://localhost/wp-content/uploads/2017/03/Facebook-960x960-grid_0005_DSC_1462-153x153.png 153w, http://localhost/wp-content/uploads/2017/03/Facebook-960x960-grid_0005_DSC_1462-498x498.png 498w, http://localhost/wp-content/uploads/2017/03/Facebook-960x960-grid_0005_DSC_1462-624x624.png 624w, http://localhost/wp-content/uploads/2017/03/Facebook-960x960-grid_0005_DSC_1462.png 960w" sizes="(max-width: 433px) 100vw, 433px" id="exifviewer-img-6" exifid="-379746270" oldsrc="http://localhost/wp-content/uploads/2017/03/Facebook-960x960-grid_0005_DSC_1462-433x433.png">

    By “main” I mean “mine” function, Im sorry about my English .-)

    I think Im not doing anything exceptional. I upload images by media upload and than I add it as post feature image, result is "attachment-medium size-medium wp-post-image".
    Classes you are pointing out Ive got on page where I used your suggested code in page template (there was alingleft class), because classes "attachment-medium size-medium wp-post-image" were gone, I think it have to be an problem with image inserting.

    Thread Starter gore.m

    (@gorem)

    Thanks you.
    Yes, it was typo, everytime Im using functions.php.

    I did test… so it is not an plugin, I disabled all and featured image still has same classes, without any change, so it has to be theme.
    Im using _s Underscore, I haven’t been doing any changes regarding to images…
    I was looking at functions.php there is only support add_theme_support( 'post-thumbnails' ); and in content.php template is <?php the_post_thumbnail('large');?>.. thats all I found… So, instead of looking for disabling should I use an function to adjust output?

    Thread Starter gore.m

    (@gorem)

    I used what you recommended before:

    You can try adding 999 to the add_filter() line like I suggested a few posts back to see if you can supersede any other filtering.

    So I used (in function.php)

    add_filter('get_image_tag', 'strip_entire_image_class', 999 );
    // same function declaration

    I removed it and used echo get_image_tag( 1104, 'test image', 'Test', 'left', 'large' ); than I got classes:

    alignleft size-large wp-image-1104

    than I tried main:

    function strip_entire_image_class($html) {
        return preg_replace('/ class="(.*)"/', '', $html);
    }
    add_filter('get_image_tag', 'strip_entire_image_class', 999);

    And it is working!.. no classes 🙂

    So is it plugin or theme, how would you search for origin?

    thanks you

    Thread Starter gore.m

    (@gorem)

    Thanks you.
    So should I block access to folders by other plugin, if Im blocking it (wp-content for example) by yours plugin?

    Thread Starter gore.m

    (@gorem)

    Thanks you
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'strip_entire_image_class' not found or invalid function name in C:\wamp64\www\wordpress\wp-includes\class-wp-hook.php on line 300
    ID is 1104, so I tried 1104 and ‘1104’ … is it right?

Viewing 15 replies - 151 through 165 (of 214 total)