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.

Chantelle_ico

Members
  • Joined

  • Last visited

  1. Chantelle_ico changed their profile photo
  2. I am trying to display all posts from a custom post type. The idea is the page displays the featured images and the title. You click on the image (which I haven't integrated yet) and then a light box shows up with the image and post title on there. I am struggling to get a link to next post to come up in the lightbox, The lightbox is opening by a href="#id and then the div id is the same as the #id in the link. Here is my code <?php $_terms = get_terms( array('supplier-category') ); foreach ($_terms as $term) : $term_slug = $term->slug; $_posts = new WP_Query( array( 'post_type'=> 'supplier-showcase', 'posts_per_page'=> 10, //important for a PHP memory limit warning 'tax_query' => array( array( 'taxonomy' => 'supplier-category', 'field'=> 'slug', 'terms'=> $term_slug, ), ), )); ?> <div class="vc_row wpb_row vc_row-fluid"><?php if( $_posts->have_posts() ) : while ( $_posts->have_posts() ) : $_posts->the_post(); ?> <div class="wpb_column vc_column_container vc_col-sm-3"> <div class="vc_column-inner "> <div class="wpb_wrapper"> <h4>title is <?php the_title(); ?></h4> <?php the_post_thumbnail('large'); ?> <?php if ( has_post_thumbnail() ) : ?> the image url <?php the_post_thumbnail_url(); ?> </a> <?php endif; ?> </a> <h2 class="post-title"><a href="<?php the_permalink(); ?>" class="post-title-link">the title as a link :<?php the_title(); ?></a></h2> <p><a href="#<?php the_ID(); ?>">The lightbox link by id</a></p> <div id="<?php the_ID(); ?>" class="lightbox-by-id lightbox-content lightbox-white mfp-hide" style="max-width:600px ;padding:20px"> <?php the_post_thumbnail('large'); ?> <?php $next_post = get_next_post(); ?> <a href="#<?php echo ( get_the_id( $next_post->ID ) ); ?>"><?php echo esc_attr( $next_post->post_title ); ?></a> </div> <br> </div> </div></div></div> <?php endwhile; endif; wp_reset_postdata(); endforeach; ?> On the page, the link doesnt show up. In the page source I can see <div id="14128" class="lightbox-by-id lightbox-content lightbox-white" style="max-width:600px ;padding:20px"> <img width="500" height="750" src="wp-content/uploads/2017/10/gallery-57-l.jpg" class="attachment-large size-large wp-post-image" alt="" srcset="wp-content/uploads/2017/10/gallery-57-l.jpg 500w, wp-content/uploads/2017/10/gallery-57-l-200x300.jpg 200w, wp-content/uploads/2017/10/gallery-57-l-333x500.jpg 333w" sizes="(max-width: 500px) 100vw, 500px"> <a href="#14128"></a> </div> So the next posts Id is the same as the post im viewing and also only the first post on the page has the Next Post code on it? Can anyone please help me out here?
  3.    Deepika01 reacted to a post in a topic: Tutorials for graphic designer, Help?
  4. Hey So I have this hobby, let's say it's golf. Looking online for new golf balls, and socks for my clubs etc. I find all these websites which sell them really cheap etc. But my God it hurts being on their site because I think it was designed by a 12 year old back in 2003, you know the type of website I'm on about, you've bound to of seen them!! So I click on the golf ball I want "add to cart" which takes me straight to PayPal.. The site doesn't have a cart! It's just one page 4 columns Products. Description of 1 sentence. Price and add to cart. At the bottom of the page is an email address. That's it!!! Just annoys me because those are usually the sites that do the cheapest stuff and delivery is quick! Just hurts so bad seeing the site. So I'm thinking I Want to contact them and say Hi I'm blah blah I'm a Web developer blah blah.. (the usual introduction) Then followed with something like I would like to enquire if you are currently seeking a new Website design and development. I would like to propose myself to you and the following initial ideas for your site Blah Blah Eccommerce site Blah Blah So the usual website sales offer letter.. But here's where I'm stuck. I want to offer the site for commission of their online sales oppose to usual pay me now and then pay me again. I want to offer it for commission for their online sales. I would be happy to maintain the site etc etc on going. Just how the hell would you word that!!! Any ideas? Or any templates anyone know of? Thanks
  5. I found a site which actually does very similar to what I want http://www.thinkfish.co.uk/fish-profiles Still have no idea how to do the compatibility part though
  6. No quite sure where to start with this one. Basically Im making a simple hobby site for someone, Has a small a forum and then advice pages. However they want a compatibility checker. For example.. Computers, So a motherboard was chosen with a 755 socket and then they choose a chip which wasnt a 755 there would be a little message list saying "This chip is not compatible with your chosen board" or they choose a board which only had 2 sata cables and then they choose 3 sata items it would say "You dont have enough sata connections" As if it was a design your own pc type of thing. (Its not for PC's, but essentially works the same) Would you build it purely from PHP?
  7. Cut a long story short, My friends Brother and a few friends have been working on an online dating plan for months. They have done their research of what they can offer which other sites dont etc etc, They have it pretty much sussed. None of them are coders. So they asked me how I would personally go about making it into a website. (AKA they want me to do it for them - I guess I do owe them a favor (they spent weeks last year digging my garden for me) My Answer is I have no idea... The key features... User Logins, Profiles, Photos, Geo Mapping... Messaging Liking profiles Filling questionnaires which match others answers and are viewable, Also can access users questionnaires via profiles Member basic and indepth searches To begin with I was thinking wordpress. (Mainly because I dont want phone calls from them every day because they need me to do something, Wordpress updates its self and handles pretty much everything for you) But after seeing their features I dont know whether a custom CMS with all the features would suit them better or just building it from Wordpress platform and maybe building the odd plugin for them if I need to.. I hate doing scripts for free when they are already out there for free or for a small fee. But what will be easier for them to keep updated and for me to build. What would you guys suggest or do?
  8. What about those companies who find you clients? I cant remember what their called but the old agency I worked at used one. They would send an email each week of potential clients who were interested in hiring us to do their website. Works similar to an recruitment agency.. I think to work at home you need to be self disciplined and motivated. Fortunately for me I was raised in the forces so self discipline is very natural for me compared to other freelancers I know. My biggest struggle is to stop working. In the evenings when im sat watching the Tv or trying to read a book I always feel like "I should go back upstairs and finish that bit" This soon turns into 16 hour days. Does anyone else have the switch off issue?
  9. I too have this issue. I was dabbling with the thought of going back into permanent work. But after my previous experience of working for someone Im a little sketchy about it. Other than meeting up with friends I find Im not leaving the house. I actually spent a whole 3 weeks not leaving the house the other month other than the school run. Even my shopping is done online. I dont think there is any permanent solution, unless you can find a team of other office based self employed people and all rent an office together. My cousin is an accountant living down south and she shares an office with 4 other people who all work in different sectors. She found an advert for someone seeking others who are self employed to come share a rented office with. I have had no luck with this where I live.
  10. Im a Developer I use a PC with 3 monitors. I use Google is my best friend and Stack overflow is where I usually seek advice. Using dev tools via Firefox, Filezilla for FTP, Notepad++ for coding and maybe wordpress for CMS depending what the clients needs are.
  11.    Chantelle_ico reacted to a post in a topic: Looking for a Web Designer
  12. I have been in touch with a local solicitor who does a 30 minute free consultation. But I fear because the lack of paperwork and the company allegedly being closed I dont know how far I will get. But Im definitely pursuing it.
  13. HI Marcus. I would definitely like to take you up on your offer of help with my portfolio. I will be in touch shortly. Thank you!
  14. A friend of mine wants to learn graphics design particular in designing websites I have tried to explain Wireframes, Grid systems, Typography to him, I think it would be a lot easier if He could use a site like w3schools but purely for graphic designers designing websites. Does anyone know of a site like this? Obviously we have searched google, We did look at you tube videos but majority of them go off that you already know how to design. Is there a site out there that has it all step by step - explaining what a grid is and why we need it etc. Explaining good and bad typography, Header, body, Footer,.. Something that breaks all elements down step by step Thanks.
  15.    Chantelle_ico reacted to a post in a topic: Background Overlay
  16.    Chantelle_ico reacted to a post in a topic: Background Overlay
  17. I cant believe that Just happened. I read this and could just face plant my desk. Thank you. Another famous coders block on my part.
  18. For some odd reason no matter what I try I can not get my background to overlay. opacity just seems to fade the buttons not the actual background.. The idea is, On hover the background goes darker (you can just see it, so opacity 0.75 would be fine. I just cant get the thing to do it. The code $template = ' <div class="swrapper"> <span class="box2" style="background-repeat: no-repeat; background-size:auto; background-position:center center; background-image: url(' . $rows[$x][photograph_url] . '); min-height:350px;"> </span> <span class="box1" style="background-repeat: no-repeat; background-size:auto; background-position:center center; background-image: url(' . $rows[$x][photograph_url] . '); min-height:350px;"> <div class="in-span"> <div class="in-span-1"> <a href="/mediaone/interiography/view.php?view=' . $rows[$x]['id'] . '" class="button"> Love it! </a></div> <div class="in-span-left"><a href="/mediaone/interiography/view.php?view=' . $rows[$x]['id'] . '" class="button"> Share it Facebook! </a></div> <div class="in-span-right"><a href="/mediaone/interiography/view.php?view=' . $rows[$x]['id'] . '" class="button"> Share it Twitter! </a></div> <div class="in-span-left"><a href="/mediaone/interiography/view.php?view=' . $rows[$x]['id'] . '" class="button"> Share it Google! </a></div> <div class="in-span-right"><a href="/mediaone/interiography/view.php?view=' . $rows[$x]['id'] . '" class="button"> Share it Twitter! </a></div> <div class="in-span-1"> <a href="/mediaone/interiography/view.php?view=' . $rows[$x]['id'] . '" class="button">See more! </a></div> </div> </span> </div><h3>' . $rows[$x][name] . '</h3>' . $rows[$x][date] . ' '; CSS #main-container{clear:both; background-color:#e0e0e0; padding:1%; margin-bottom:2%; border-radius:4px; border:#f8f8fb solid 1px;} #main-container-left{background-color:#e0e0e0; padding:1%; margin-bottom:2%; width:45%; float:left; border-radius:4px; border:#f8f8fb solid 1px;} #main-container-right{background-color:#e0e0e0; padding:1%; margin-bottom:2%; width:45%; float:right; border-radius:4px; border:#f8f8fb solid 1px;} .swrapper .box1 { display: none; } .swrapper:hover .box2 { display: inline; } .swrapper:hover .box1 { display: inline; } .box1{} .in-span{ padding-top:5%; margin-left:auto; margin-right:auto; width:70%;} .in-span-1{clear:both; width:98%; padding:1%; } .in-span-left{ padding:1%; margin-bottom:2%; width:44%; float:left; } .in-span-right{ padding:1%; margin-bottom:2%; width:44%; float:right;} .button{background-color:#e0e0e0; width:100%; display:block; border:#f8f8fb solid 1px; padding:10px 10px 10px 10px; text-align:center; } Starting to feel im going in circles now looking at all this.. I am most likely missing something simple.. The latest attempt (I saw a JS Fiddle and cant get that to work either $template = ' <div class="procduct"> <div class="image"> <span style="background-repeat: no-repeat; background-size:auto; background-position:center center; background-image: url(' . $rows[$x][photograph_url] . '); min-height:350px;"> <div class="overlay"> <div class="btn1"> <a href="/mediaone/interiography/view.php?view=' . $rows[$x]['id'] . '"> Share it Facebook! </a> </div> <div class="btn2"> <a href="/mediaone/interiography/view.php?view=' . $rows[$x]['id'] . '"> Share it Twitter! </a> </div> </div> </div> </div> <h3>' . $rows[$x][name] . '</h3>' . $rows[$x][date] . ' '; css: .procduct { margin: 5px; padding: 5px; max-height: 350px; border: 1px solid #F00; float: left; } .image { z-index: -1; position: absolute; } .overlay { padding-top: 65px; padding-left: 17px; display:none; } .procduct:hover .overlay { display:block; } .procduct:hover .image { opacity:0.50; } .bt1 { float: left; margin: 5px; padding: 5px; background-color: #0F0; } .bt2 { margin: 5px; padding: 5px; float: left; background-color: #F69; } .clear { clear: both; } Any ideas? Thanks
  19. So something like this would work? $template = ' <div id="diva_id" style=" display:block; background-repeat: no-repeat; background-size:auto; background-position:center center; background-image: url(' . $rows[$x][photograph_url] . '); min-height:350px;" class="swap-it"> </div> <div id="divb_id" style=" display:none; background-repeat: no-repeat; background-size:auto; background-position:center center; background-image: url(' . $rows[$x][photograph_url] . '); min-height:350px;" class="swap-itba"> <a href="/mediaone/interiography/view.php?view=' . $rows[$x]['id'] . '"> <h3>' . $rows[$x][name] . '</h3>' . $rows[$x][date] . ' </h3> </a> </div> '; and the JQuery would be $('a.swap-it').hover(function() { // in $(this).find('div.mouseover-swap-itb').show(); }, function() { // out $(this).find('div.mouseover-swap-itb').hide(); } );

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.