• Code Snippet Prompt Fail

    Posted by Mert Musa Temel on June 16, 2025 at 8:36 pm

    Hi,

    I am new here. I came here from Hasan’s last youtube video (Before Buying WordPress Plugins — Try This! – https://www.youtube.com/watch?v=2WgTjkvG1TA), and I tried to recreate the landing page of my website (https://bedavawebsite.com/) that I designed with Elementor, that have performance issues. But instead of a landing page all I get is a straight page with just texts. No background for sections and when I tried to style the page with new request, Claude is giving length limit error. I get source code with SingleFile chrome extension, but again restricted by length limit of Claude. Do you have any advice or solutions to give? Thanks in advance.

    Hasan replied 2 weeks, 4 days ago 3 Members · 8 Replies
  • 8 Replies
  • Hasan

    Administrator
    June 17, 2025 at 6:24 am

    Hi Musa, do you have Claude premium?

    can you share the prompt you used

    • Mert Musa Temel

      Member
      June 17, 2025 at 7:13 am

      Hi Hasan,

      Here is my promt:

      Your task is to create a complete and working “1-page” WordPress code snippet that I can paste directly into the Code Snippets plugin on my WordPress site.

      What I Want This Snippet To Do:

      create a landing page as same as file that I uploaded

      Requirements:

      – The code should be self-contained

      – Focus on making it functional first. I will ask for polishing/optimization later.

      Shortcode & CSS Naming Rules:

      – Prefix all shortcodes with bwas_ to avoid naming conflicts.

      – If the snippet includes CSS, prefix all class names with bwas- to avoid conflict with the site’s theme.

      Before generating any code, ask me several clarifying questions to ensure you fully understand what I want. Then generate the full, working snippet only — no explanation or extra text.

    • Mert Musa Temel

      Member
      June 17, 2025 at 7:32 am

      (PS: Couldn’t edit first comment. This is the continuation.)

      With this file attached: https://limewire.com/d/kDVn5#k4osAFmW5f

      No I don’t have Claude premium. Wouldn’t OpenRouter do the job too? Thanks.

      • Hasan

        Administrator
        June 17, 2025 at 10:04 am

        I didnt test it with OpenRouter.

        but the prompt has no information, you just said like the page, you have to be specific on what you want.

        • Mert Musa Temel

          Member
          June 17, 2025 at 1:09 pm

          Thank you very much for your interest.

          • Hasan

            Administrator
            June 18, 2025 at 8:00 am

            please try out with more details, and let me know

  • Raja Niketh Reddy Nallapareddy

    Member
    June 19, 2025 at 2:43 pm

    Yes, there is going to be a token and length limit for the free version. However, if you want to work around the length limit issue, you can try using another LLM with a higher limit. I faced the same problem with Claude and started looking for alternatives with a larger context window. I found that Grok 3 performs better in that regard.

    Another way to solve this is by using a VS Code extension like Cline or AI-powered IDEs.

    Hope this helps!

    • Hasan

      Administrator
      June 20, 2025 at 6:24 am

      👍

Log in to reply.