Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

teodora

Privileged
  • Joined

  • Last visited

Solutions

  1. teodora's post in Bootstrap Grids - I want the same height for every column. was marked as the answer   
    You can use flexbox - something along the lines of my js fiddle here - https://jsfiddle.net/teodora84/hbyr2a1s/1/
    Here's another link for you - http://codepen.io/imohkay/pen/gpard
     
    You can use the display:table; method - for example http://www.hongkiat.com/blog/css-equal-height/ There's plenty of info online - https://www.google.co.uk/?ion=1&espv=2#q=display+table+equal+heights+methd+css
     
    Robert's grid is another option - much better than bootstrap and takes care of everything for you, incl. equal heights.
    https://github.com/rbrtsmith/rbrtsmith-grid
  2. teodora's post in swapping two using class properties querySelector was marked as the answer   
    Hi, here is a jsfiddle for you: https://jsfiddle.net/teodora84/j5crkd4L/
     
    I have commented it, hope all makes sense
  3. teodora's post in Selecting Part of an Image? was marked as the answer   
    Perhaps this could help - http://jonrohan.codes/fieldnotes/vertically-center-clipped-image/?
  4. teodora's post in conditional statement issue was marked as the answer   
    With WP you need to use has_post_thumbnail(), for example:
    if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { //Something else } the_post_thumbnail is a function, so you can't use "empty" in a conditional statement the way you would do with a field, if that makes sense
  5. teodora's post in Is this possible? was marked as the answer   
    I assume, this is WP? If so, on top of my head:
    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; if( is_front_page() && $paged == 1 ) { ?> <div> <iframe width="640" height="360" src="//www.youtube.com/embed/oCQ3weRdo" frameborder="0" allowfullscreen></iframe> </div> <?php } ?> Hope that helps
  6. teodora's post in Css issue: don't know how to modify was marked as the answer   
    Welcome to the forum
    At first glance, you need to float the content and sidebar and to give them a width.
     
    The theme is not responsive, so you can use fixed width. In your style.css add the following:
    #content{width: 600px; float: left;} #sidebar-home{width: 280px; float: right;} That should look like the attached. Hope that works for you
     

  7. teodora's post in How do I remove white spots on the logo? was marked as the answer   
    Not sure how it's done in GIMP, seems to me like you need to play with the anti-aliasing settings.
  8. teodora's post in Layout issues with WooCommerce products was marked as the answer   
    A possible jQuery solution will be to get the height of the tallest element in the row and assign the same height to the other elements, so they all have equal heights;
     
     
    jQuery(document).ready( function($){ $.fn.equalHeights = function() { var maxHeight = 0; return this.each(function(index, box) { var boxHeight = $(box).height(); maxHeight = Math.max(maxHeight, boxHeight); }).height(maxHeight); }; $('your-class-here').equalHeights(); });  
    Then on widow resize you need to make sure they keep the same height:
     
     
    jQuery( window ).resize(function() { $('your-class-here').equalHeights(); $('your-class-here').css('height', 'auto'); }); Hope that helps
  9. teodora's post in In need of help.. was marked as the answer   
    Hi Welcome to the forum.
    You need to clear the floated <li> elements. If you assign to your div news_cont-bottom CSS property clear:both, that fixes your site.
    hth
  10. teodora's post in Get Post Meta was marked as the answer   
    Hi Charly
    Me again, hope to help this time
     
    Let's say in your WP page dashboard you enter a custom field called "Colour" and then a value for colour of "Blue".
     
    Then in your theme files (where you want to show the field - within the loop) you put:
     
    This will output Colour: Blue (or any other value you enter for the custom field).
     
    This code checks if there is a value entered and if so, prints the value. If a value is not entered, you can specify something else in the PHP.
    Hope that makes sense
  11. teodora's post in Aaah search bar positioning was marked as the answer   
    Looks like it's a clearing floats problem. .form-wrapper input is floating left and .form-wrapper button is floating right.
    You will need to clear them
     
    Edit: Here is more info on clearing floats: http://css-tricks.com/all-about-floats/
  12. teodora's post in How Do I Resize Many Pictures At Once On Photoshop? was marked as the answer   
    It's very easy, if you open Photoshop and go to File >> Scripts >> Image Processor then a window comes up with a few options.
    You can resize a whole folder of pictures this way.
     
    Hope that helps
     

  13. teodora's post in Style each post individually was marked as the answer   
    Sorry, I meant apply the code to div class="latest-post", not to post-thumb.
     
    On a second glance you need to change the code a bit:
     
     
    <div id="latest-post-wrap" class="sevencol"> <ul> <!-- LOOP START --> <?php $the_query = new WP_Query( 'showposts=3' ); ?> <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> <li class="post-wrap"> <!-- individual post wrap--> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <!-- THIS DISPLAYS THE POST THUMBNAIL, The array allows the image to has a custom size but is always kept proportional --> <div class="post-thumb"><li><?php the_post_thumbnail( array(100,100) );?></li></div> <!-- THIS DISPLAYS THE POST TITLE AS A LINK TO THE MAIN POST --> <div class="post-title"><li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li></div> <!-- THIS DISPLAYS THE EXCERPT OF THE POST --> <div class="post-text"><li><?php the_excerpt(); ?></li></div> <!-- READ MORE LINK --> <div class="post-readmore"><li><a href="<?php the_permalink() ?>">Read More...</a></li></div> </li></div> <?php endwhile;?> <!-- LOOP FINISH --> </ul> </div><!--/Latest Post Wrap-->  
    So now you have <ul><li> structure.
    I have added a class "post-wrap" to the <li>. You can style every <li> the same way using its clas, and then you can check the particular post class in Inspect element or Firebug, then you can style every post individually, using the generated class for each post.
     
    Hope that makes sense
  14. teodora's post in a href links taking style from navigation menu was marked as the answer   
    OK, the problem is you have set global link styles (so every <a> element inherits them).
    What you can do is:
     
    1. Your menu is ul, you can give it an id, for example:
     
     
    2. Remove the styles from a, a:visited and then instead assign them to ul#nav li a, that means only the <a> of an <ul> element with an id nav will be styled this way.
     
     
    Then you can set up basic styles (if you wish), like color for the global link styles, and you can override them the same way as above.
    Hope that helps, ask if there is anything unclear
  15. teodora's post in Do media queries work on mobiles? was marked as the answer   
    You need to use
    <meta name="viewport" content="width=device-width"> Put this code in your header, where your other metas are.
    Hope this helps
  16. teodora's post in Text Slider For Html5 was marked as the answer   
    Or you can look into CSS3 : http://www.hongkiat.com/blog/css3-animation-advanced-marquee/
  17. teodora's post in CSS photo gallery display was marked as the answer   
    OK, here is a list gallery, which has 5 pictures in a row. Each li is 20% wide, each picture takes 100% of the li.
    The gallery container div takes 90% of the screen, but maximum width of 960px.
     
    So the images resize down, when you resize your browser.
    I have used media queries, and made it so each li takes 100% of the parent container (and therefore of the screen), when the resolution is below 600px.
    You can change that or you can add more media queries to adjust it to your liking.
    You can change the % to make more than 5 columns or less.
     
    However your images (and text) need to be the same height, otherwise the gallery will break.
    You can either set a height of the li elements and overflow:hidden; (this is not a very good solution, though) or there is a javascript (I can post it here if needed) that makes the li elements the same height - it takes the tallest element and adjust the rest according to that. Hope that makes sense
     
    Here is the code:
     
    HTML
     
    <div id="gallery"> <ul> <li><img src="#" alt="image goes here"/> <span>Text goes here</span></li> <li><img src="#" alt="image goes here"/> <span>Text goes here</span></li> <li><img src="#" alt="image goes here"/> <span>Text goes here</span></li> <li><img src="#" alt="image goes here"/> <span>Text goes here</span></li> <li><img src="#" alt="image goes here"/> <span>Text goes here</span></li> </div><!--/gallery-->  
    and CSS
     
    #gallery{ width:90%; max-width:960px; margin:0 auto; } #gallery ul{ margin:0; padding:0; list-style:none; } #gallery ul li{ width:20%; float:left; background:#ccc; text-align:center; } #gallery ul li img{ width:100%; height:auto; background:grey; } @media only screen and (max-width: 600px) { #gallery ul li{ width:100%; } } Ignore the background colours, I have added them just to see what is what.
     
    Hope that helps, but if you are not sure about something, ask
  18. teodora's post in Ethics of a WordPress Theme was marked as the answer   
    I would say if the budget is low, choose the fastest way to do it, so you can stay within budget
  19. teodora's post in Stock Image Source was marked as the answer   
    I use http://www.shutterstock.com/
    They have a few one-off payment plans - something like £30 for 12 low/med resolution images or £30 for 5 high res images or vectors.
    I believe they have a reasonable selection.
  20. teodora's post in Aaah I can't find where the padding is, can anyone help? was marked as the answer   
    Hope you can solve it
    The problem definitely comes from that li element's margin, I changed it in Chrome console and it worked.
  21. teodora's post in Image Gallery for WordPress was marked as the answer   
    Of course it is best if you don't use a plugin, but I find it easier, ( if the client need to upload images themselves do't have a great knowlledge of how things work and especially if the budget don't allow for custom development ) to use plugins.
    I have found this one the other day http://codecanyon.net/item/media-grid-wordpress-responsive-portfolio/full_screen_preview/2218545
    I love the responsive grid and you can insert your custom CSS, which won't be overridden in future plugin updates. The cons are its admin panel could have been a bit easier, but it comes with video tutorials.
  22. teodora's post in Illustrator Artefacts was marked as the answer   
    Hmm, I can't really help, sorry The only thing I can think of is probably quite stupid - can you transfer the work to Photoshop and use its PDF/X1-a preset.
    This is a shot in the dark, but can't thing of anything else
  23. teodora's post in How is this done in photoshop? was marked as the answer   
    Hi To make this you need to know how to work with basic shapes, and you need to know your way around layer styles:
     
    To recreate the shining, you need:
    1. Create a circle in photoshop
    2. Make sure fill is set to 100%
    3. Double click on the circle layer to open layer styles window
    4. Select Gradient overlay
    5. From the Gradient style dropdown below select Angle
    6. Add more Colour stops to your gradient, as shown below. Here is a link to different golden shades http://0to255.com/c59412
     

     
     
    Then you will have something similar to this:
     

     
    To create the arcs, you need to :
    1.Make a circle
    2. Make a smaller circle
    3. Combine the two shapes by selecting both layers, right-click and select combine shapes.
    4. You need to subtract the front shape (the smaller circle) from the top menu (just next to width and height).
    5. Create a few rectangles and subtract them from the shape.
     
    Play with the shapes until you achieve what you need.
     

     
     
    Another way is to use the Pen tool to create the arcs.
    After you have your desired shapes, repeat the gradient using different colours, grays and black. Play with the gradients until you achieve the shining effect.
     
    Hope this helps

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.