Jump to content

Archived

This topic is now archived and is closed to further replies.

globalnative

Issues with ibox's when text fields left empty

Recommended Posts

globalnative

Hi guys!

 

I'm trying to work with ibox's and finding them rather frustrating. 

 

Whenever I leave either the ibox text or title empty it automatically fills with the default text when publishing.

 

The site is: http://craniosacraljulie.com

 

Here's a screenshot of what I mean:

In the left image I've left the title clear, attempting to use the text box as title instead with h5 tags.

In the right I left the textbox blank.

Screenshot-2014-10-15-14.01.43.png

 

Any assistance appreciated, thank you :)

Nate

Share this post


Link to post
Share on other sites
Danny

Hi Nate,

 

Yeah the fields are required thats why. I will add this to our tracker as a minor section tweak. In the meantime, add the following to the text fields you do not want to use:

 

 

 

If that doesn't give you the look you want, you will want to use custom CSS to hide those elements. I am unable to see your site or the image, both are giving me an error.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
globalnative

No need to see the links, they're broken at the moment...plus, you answered by question anyway. I also came up with the same workaround, adding that bit of empty space html. Doesn't look amazing, but it'll work for now.

 

Thanks a bunch :D

Nate

Share this post


Link to post
Share on other sites
Danny

Yeah as the elements will still be present as you have entered something into the fields. So until this functionality changes, you will probably want to use CSS to hide them.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
globalnative
How would I do that please, Danny?

Share this post


Link to post
Share on other sites
Danny

You will want to inspect the iBox section using Chrome dev tools and target the iBox titles and text class. For example:

 

#site .ibox-text {
display: none;
}
 
However, using the code above will hide the text on all iBoxes you use. Therefore, you will probably want to prefix the code with the iBox sections unique ID. Again you can find this using Chromes dev tools. I can not give you the ID as it is unique to your site.
 
However, an example would look like this:
 
#iboxucaaspb .ibox-text {
display: none;
}
 
You can find your ID here - https://cloudup.com/iEmHdYZxzQZAgain your will be different, so replace the one I have added above with the ID on your iBox section.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • stijnxo
      By stijnxo+
      Is there a way to disable the responsive function of your iBoxes?
      I do not want all iBoxes underneath each other on mobile, is there a way to fix columns or group boxes?
      I use them for small links and want them to stay next to each other, see attachment
      Please let me know.



    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • Audun MB
      By Audun MB+
      I've added a number option (ie the first box has a 1 next to or above, second box has 2, etc) to iBoxes in DMS (as a custom section), and I'd like that for PL5 Boxes as well. Adding it for iBox was quite easy:
      First this: 'opts' => array( 'icon' => array( 'name' => __( 'Icon Font', 'pagelines' ) ), 'count' => array( 'name' => __( 'Counter', 'pagelines' ) ), 'image' => array( 'name' => __( 'Images', 'pagelines' ) ), 'numb' => array( 'name' => __( 'Number', 'pagelines' ) ), 'text' => array( 'name' => __( 'Text Only, No Media', 'pagelines' ) ) And then this } elseif( $media_type == 'numb' ){ $background = ($color) ? sprintf('<span class="invert-icon" style="background-color: %s;"></span>', $color) : ''; $media_html = sprintf( '<i class="iii icon iboks-number" style="%s">%s</i>%s', $text_color, $count, $background ); } And some CSS (though I used the style for icon mostly). iBox already did know which number the box had in the sequence, so adding the number was quite simple. 
      The Boxes code, and PL5 code in general, is a bit mor complex with javascript (with Knockout) and php, and some CSS cheats. It took me a while to figure out how it works, and I'm not sure I quite grasp it yet.
      Adding a number option to the media array is the same as iBox:
      array( 'key' => 'ibox_media', 'type' => 'select', 'opts' => array( 'icon' => array( 'name' => __( 'Icon Font', 'pl-section-boxes' ) ), 'count' => array( 'name' => __( 'Counter', 'pl-section-boxes' ) ), 'boxnumb' => array( 'name' => __( 'Numbering', 'pl-section-boxes' ) ), 'image' => array( 'name' => __( 'Images / SVG', 'pl-section-boxes' ) ), 'text' => array( 'name' => __( 'Text Only, No Media', 'pl-section-boxes' ) ) ), 'default' => 'icon', 'label' => __( 'Select iBox Media Type', 'pl-section-boxes' ), ), In the section template I'll add a line for the boxnumber. In addition I have to add variuous boxnumb classes in the build.less file to make it hidden by default and style it.
      function section_template(){ ?> <script type="text/html" id="boxes-template"> <a class="boxes" data-bind="class: boxclass() + ' pl-col-sm-' + $root.ibox_cols(), plhref: link" > <div class="boxes-pad" data-bind="class: 'pl-control-'+ $root.ibox_format()"> <div class="boxes-media media-left"> <span class="the-boxes-media pl-animation pl-appear" data-bind="class: 'media-'+$root.ibox_media(), style: { color: color, width: $root.image_width() + 'px', opacity: $root.image_opacity}"> <div class="pl-image" data-bind="plbg: image, class: $root.image_format"></div> <span class="pl-counter" data-bind="pltext: count"></span> <span class="pl-boxnumb" data-bind="pltext: ?numbervalue?"></span> <i class="boxes-icon pl-icon" data-bind="class: 'pl-icon-'+icon()"></i> </span> </div> <div class="boxes-text media-right"> <h3 class="boxes-title" data-bind="pltext: title"></h3> <div class="boxes-desc" data-bind="pltext: text"></div> </div> </div> </a> </script> Where I'm stuck is how to get the number to supply to pltext. Since the boxes are numbered in the configuration panel (showing as Item 1, Item 2, ...) I guess there is something in the code that could give me the box number, but what would that be? Finding it in the pure php code of iBox was quite easy, but the Javascript-Knockout.js-PHP code in PL5 isn't that easy to read. 
      I realise that I'm developer terrority now, but I'd appreciate any help. I guess this could be useful for more people if get it to work. Maybe it should be added as a standard option? "X things you need to know" or similar is staple website content and the Boxes section is ideal for that with numbers. On our website the "X things you need to know"-pages is half our traffic. 
    • laka74
      By laka74+
      Dear support,
      I'm having problems using the iBox - can't change anything or delete it ?!
      http://seriousplay.training/
      Best
      regards
      Lasse Kramer
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
×