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.

GrahamUK33

Privileged
  • Joined

  • Last visited

Reputation Activity

  1. Like
    It will be an issue with your category template.
    What the issue is nobody can tell until you show the page.
    But this might be helpful:
    https://techtuts.co/wordpress-how-to-do-pagination-on-category-page/
  2. Like
    GrahamUK33 reacted to fisicx in Sitemap for navigation   
    But it's working for me:
    https://testblog.co.uk/full-sitemap/
    This is using your code!
  3. Like
    GrahamUK33 reacted to fisicx in Sitemap for navigation   
    The code works. It means something is awry with your functions.php. The error is on line 91.
    Can you post/send me the code
  4. Like
    GrahamUK33 reacted to fisicx in Sitemap for navigation   
    function sitemap($atts) should be
    function sitemap($atts) { Functions work like this:
    $variable = 'something'; echo my_function ($variable); function my_function ($variable) { // do something here with $variable. For example: $variable = 'This is my new ' . $variable; return $variable; } You get a variable and send it when you call the function.
    The function does something with the variable and returns it back.
    The echo outputs the variable to the page.
  5. Thanks
    GrahamUK33 reacted to fisicx in Sitemap for navigation   
    Like this
    $sitemap .= '<div class="sitemapsub"><h4><a href="' . get_category_link( $cat ) . '">' . $cat->cat_name . '</a></h4>'; https://developer.wordpress.org/reference/functions/get_category_link/
     
  6. Thanks
    GrahamUK33 reacted to fisicx in Sitemap for navigation   
    Excellent!
    You can now be clever and add some shortcode attributes to limit the sitemap to specific categories.
  7. Thanks
    GrahamUK33 reacted to fisicx in Sitemap for navigation   
    Sorry, missed an echo:
    <?php /* Template Name: Sitemap */ get_header(); ?> <div class="wrapper-main"> <div class="wrapper-inner-main"> <article> <?php echo sitemap(); ?> </article> </div> </div> <?php get_footer(); ?> This just calls the sitemap function.
    If  you want to add content you just need to create a standard page and use the shortcode, you don't need a template.
  8. Like
    GrahamUK33 reacted to Jack in Sitemap for navigation   
    I've got this working as:
    Category
    - Sub
    -- Post
    I'll tidy the code up and post it when I can, although, I'm a little hesitate to, because it's just not a good solution.
    The problem I have with doing this stuff in WordPress is that there's no way to do it nicely. In most cases this is going to be a mess, or very slow, because of the amount of data that has to be glued together. I have tried to use arrays where possible to speed things up, but I'm convinced the best way to do this is to ignore the WP query methods and to write an SQL query that correctly models the data you're trying to get out. I'm not amazing at SQL but I'll give it a go.
  9. Thanks
    GrahamUK33 reacted to fisicx in Sitemap for navigation   
    Got them working together now: https://testblog.co.uk/sitemap/
    Next job is to add some child categories and see if I can get them to work.
  10. Like
    GrahamUK33 reacted to fisicx in 403 Error when using Google PageSpeed   
    Why all the complexity? Just remove that line, you don’t need it.
    Is it only the homepage causing problems?
  11. Like
    GrahamUK33 got a reaction from Megan Green in How long does it take to go from junior to senior developer?   
    I should imagine this depends on how talented/skilled you are/become. I wouldn’t even make junior level, they seem to want so many skills.
  12. Like
    GrahamUK33 reacted to fisicx in Contact Form   
    It’s possible your host is blocking the php mail function. Might be worth checking.
    Another option is to use smtp. There are lots of tutorials on how to do this.
  13. Like
    GrahamUK33 reacted to BrowserBugs in Contact Form   
    The reply to header is only required if the reply to is not the same as the sender, e.g. server@somedomain sends mail from someone@hotmail but you want the reply to come back to sales@somedomain and not server@somedomain.
  14. Like
    GrahamUK33 reacted to fisicx in web servers for video   
    If you want a video streaming service you have to hand over personal info. They ask this to verify who you are - this helps to prevent copyright and offensive content issues.
    When you publish your site you will have to tell them your personal details as well. You can’t eacape this.
  15. Thanks
    GrahamUK33 reacted to fisicx in How does WordPress handle images?   
    All media is stored in the wp_uploads folder.
    This folder is split into upload dates (unless you disable this in the settings).
    When an image is uploaded an thumbnail set is created for use in different scenarios. There is a really good explanation here: https://premium.wpmudev.org/blog/wordpress-image-sizes/
    You can also create your own image sizes: https://developer.wordpress.org/reference/functions/add_image_size/
    For example on one theme I built I need 600 x 600 images for a grid. I added the filter, regenerated all my thumbnails and now had a new feature image option to choose: https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
  16. Like
    GrahamUK33 reacted to fisicx in What is your design process   
    @naveenkumar - you missed the most important part: content. Without content you can't design a website.
  17. Thanks
    GrahamUK33 reacted to fisicx in Problem with resizing images   
    Stop trying to resize the images. Set the container size and let the images fill the container. If the ratio it incorrect they will see the ones that need fixing.
  18. Like
    GrahamUK33 got a reaction from fisicx in Problem with resizing images   
    Looks like I have got the functionality part of it working, it just needs tidying up a bit more through the @media settings.
  19. Like
    GrahamUK33 got a reaction from MonsterST in Complete newbie, lowest of the low!   
    If you don't want to learn how to use VSCode, you can just use Notepad (within Windows) which will allow you to create basic websites. 
  20. Like
    GrahamUK33 reacted to fisicx in Complete newbie, lowest of the low!   
    VS Code is an HTML editor - the same code you use in Notepad. Big advantage is all the automation and validation VS gives you.
  21. Like
    GrahamUK33 got a reaction from Munch in I'll pay you US$ 1000 to redesign a single page website to me   
    I’m surprised this post hasn’t been removed as spam yet. 🤔
  22. Haha
    GrahamUK33 reacted to fisicx in Inherited Website Need Speed Help   
    Is this the new Star Wars way to code?
  23. Thanks
    GrahamUK33 got a reaction from Dezvolta in Please rate my website   
    It looks clean and uncluttered, I like it. 👍
  24. Like
    No the clicks / traffic has no bearing on ranking, search engines are not interested, in simple terms traffic data is just one metric for you to use in evaluating a website alongside search terms, referrals etc. Pointlessly dumping fake data into the mix will only cause confusion when calculating what's working for you and what's not.
    The madness is there are loads of articles on how to remove fake / ghost traffic from GA, see Moz as an example.
  25. Like
    GrahamUK33 got a reaction from RowanOne in Which website do you like more?   
    Its the same advert as before, but for Indian food this time!
    The picture of the little girl is eating a kebab, which is not Indian food!

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.