Forum Replies Created

Viewing 15 replies - 16 through 30 (of 30 total)
  • hmm. Thank you, it almost worked. The employees are now 3:2 with the ones in the second row centered beautifully. The services are 3:1 while the one in the second row is still floating left. I tried many different margins but it’s not doing as I want. I now have margin -5px to be sure it’s not removed further from the left edge of the div than from the right.

    This is the page: praxislandgraf.de, perhaps you can see what’s going wrong?

    Thank you! Your support is always excellent.

    Picking up on this;

    I have say 4 services and 5 employees. The new rows are being filled from the left (float:left) which doesn’t look ideal.

    When I use the css you posted, only two services/employees get put next to one another but valign of the divs seems to be center. Also, I’d like to leave the text within as is.

    Could you advise me on the css to keep three per row valign top but get however many (less than 3) I have in the new row centered therein also valigned top?

    margin: 0 auto !important; doesn’t seem to do it or perhaps I’m putting it in the wrong place or it’s not enough…

    Thanks!

    hmm. This way of doing it doesn’t seem to parallax the text widget background.

    Also, the update breaks my (modified) stuck navbar and content of a text widget (also somewhat css tweaked) seems to have width 100% which doesn’t look nice, I’d have to spend more time on this. I think I’ll just not touch this running system albeit unclean

    that is awesome! I had still been on 1.12, this gives me reason to update.

    Thread Starter paprika27

    (@paprika27)

    awesome! thanks for the continuously great support!

    Thread Starter paprika27

    (@paprika27)

    praxislandgraf.de

    thanks!

    Thread Starter paprika27

    (@paprika27)

    i noticed – html in database isn’t a good idea, i agree.

    then how do I add a line break otherwise?
    ie how do i float the auto wrapped width:500px; div into the center elegantly?

    in the field under theme>customize>Welcome Area>’The link for the call to action button’.

    I used this to implement acustom icon “funkdiag” as though it were font-awesome:

    .fa.funkdiag:before { /*should be font-size in .service-icon*/
        content: url('/wp-content/uploads/2014/11/.....png');
    }
    
    .service-icon {
    font-size: 80px;
    width:100px;
    height:100px;
    }

    so you’ll choose “funkdiag” as the icon when you create the service in the backend.

    I used this to add a custom background image to a text widget in my case (should be adaptable to every other widget)

    #appointment {
     padding-bottom: 50px !important;
    	display: block;
    	background: url(/wp-content/uploads/2014/11/terminvereinbarung-w.jpg) no-repeat;
    	background-position: center top;
    	background-attachment: fixed;
    	background-size: cover;
    	z-index: -1;
    }

    Where the text widget contains this:

    <section id="appointment" class="appointment-area"><div class="container">
    <h3 class="widget-title">TITLE</h3>
    <div class="textwidget">
    CONTENTCONTENTCONTENT
    </div></div></section>

    For the background I had to remove surrounding text-widget-specific tags using this js:

    jQuery(document).ready(function($){
    var c = document.getElementById('appointment');
    $(c.parentNode.parentNode).replaceWith(function() { return c; });
    });

    Good luck!

    Thread Starter paprika27

    (@paprika27)

    in case anybody else needs it:

    jQuery(document).ready(function($){
    document.getElementsByClassName(‘all-news’)[0].innerHTML = “Alle Neuigkeiten”;
    });

    to be run in wp_footer ie by using plugin “Custom css-js-php” (make sure jQuery is not being defered).

    Thread Starter paprika27

    (@paprika27)

    I feel this is a bit much for just one button. I’ll do it in javascript. It would be nice if this button were editable like the call to action button is.

    Thread Starter paprika27

    (@paprika27)

    Thanks!
    will that be lost when I update?

    Thread Starter paprika27

    (@paprika27)

    ah, block.

    thanks a lot!

    Thread Starter paprika27

    (@paprika27)

    this is how far I got:

    function thumbnail($atts){
    extract(shortcode_atts(array("url" => 'https://'), $atts));
    global $post;
    if (!has_post_thumbnail()){
    require_once(ABSPATH . 'wp-admin/includes/file.php');
    require_once(ABSPATH . 'wp-admin/includes/media.php');
    require_once(ABSPATH . 'wp-admin/includes/image.php');
    
    // $post_id == the post you want the image to be attached to
    // $url == the vimeo video's thumb url
    // $description == optional description
    
    // load the image
    $result = media_sideload_image($url, $description);
    $post_id=$post->ID;
    // then find the last image added to the post attachments
    $attachments = get_posts(array('numberposts' => '1', 'post_parent' => $post_id, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC'));
    
    if(sizeof($attachments) > 0){
        // set image as the post thumbnail
        set_post_thumbnail($post_id, $attachments[0]->ID);
    }
    
    }
    }

    what’s not working:

    • setting the post thumbnail. it uploads alright but doesn’t do anything from there
    • the setting the remote image as thumbnail. I hate to have to clog my disk with what’s already publicly accessible anyway.

    Any help will be greatly appreciated!

    Thread Starter paprika27

    (@paprika27)

    Thank you for your diplomatic approach. by background structures I meant pages that are children of a member’s area page. However, the customer area dashboard redirected my home page to itself. Yes, I do not know where options like that are hidden for it is not in any menu or database table I know how to find. However, I cannot appreciate a plugin making any such deep changes without my explicit understanding.

    I have WP Modal login set up with custom redirects to avoid wp-login and wp-logout. even after deactivating and removing customer area these links remain changed to somewhere I didn’t set them to go to. Moreover, I need paid memberships pro to charge for something very offline indeed. And as if that weren’t enough, I need pmpro register helper to add file fields to user meta and theme my profile to enable the user to edit these. Yes, a mess of a setup and fragile.

    Maybe you could tell me where this plugin makes any changes so I can try to retrace everything that’s not working now?

Viewing 15 replies - 16 through 30 (of 30 total)