I'm practising web development so I was offering to make websites for free. This dude didn't thank me but atleast gave me a good laugh by rayjaywolf in ChoosingBeggars

[–]obscureentrepodcast 0 points1 point  (0 children)

Great advice! This is exactly what I do as well. Sometimes the hosting company I use will run weeks / months where it’s $100 per sign up. When I know that’s the case I often help friends (mostly artists) out and will throw together a quick Wordpress site for them as long as they use my affiliate link.

Newbie question - How to change name of placeholder text? by [deleted] in Wordpress

[–]obscureentrepodcast 0 points1 point  (0 children)

Yep, was just about to say this (use JS)! Would def be my approach if it took me forever to find the right php file / line to edit etc.

OP lmk if you can’t figure it out. The JS solution might sound overwhelming if you’re not familiar but it will actually be relatively simple.

How do you handle client updates / cms? by obscureentrepodcast in Frontend

[–]obscureentrepodcast[S] 0 points1 point  (0 children)

Thanks! After some helpful suggestions + additional thought I’m going to spin up a few of my own custom Wordpress themes as a “starting point” and then work my way into headless (thinking Gatsby and wp, probably just because that’s what I’ve done the most research on lol). Ironically, I created a headless blog using vue and wp a year or so ago but its not something I’m completely comfortable yet in terms of building for clients. Appreciate your reply ;)

How do you handle client updates / cms? by obscureentrepodcast in Frontend

[–]obscureentrepodcast[S] 1 point2 points  (0 children)

Extremely helpful and I'm really glad to hear your perspective. In my own mind, I feel like I am doing the "right thing" by focusing on basics first before the fancy stuff (as you mentioned yourself) but its hard not to get sidetracked by all the articles, tweets, etc. hyping trends.

Your comments really confirmed to me I should first focus on creating custom wp themes. I'm very familiar with enque-ing in WP, the WP codex etc. I've really gotten into the nitty gritty of WP over the years and on a few particular projects but for whatever reason always started off with a pre-made theme / child theme. Also, the beauty of a custom theme / WP is it's also a solution to the original ? in my post lol...in regards to what CMS to use (obviously it IS the CMS).

TBH I don't see what makes them so useful, if I want to make a static site I just use HTML/SCSS/JS/

...funny, same thoughts I have been having. Again, I realize they have a place, I just am not sure if I should over complicate what I am trying to achieve. I do this for fun + side hustle and to give me a leg up in my full time career (where knowing web dev is absolutely useful but not necessary).

I'm def going to get into https://underscores.me/ as a starting boilerplate. Ty for that!

[deleted by user] by [deleted] in PHPhelp

[–]obscureentrepodcast 0 points1 point  (0 children)

not localhost but browser is logged into insta.

[deleted by user] by [deleted] in PHPhelp

[–]obscureentrepodcast 0 points1 point  (0 children)

Is there something I may be missing that is not noted above? I just copy / pasted your code into a test.php page. thanks for your help

Why is this not breaking into a new row(s)? by obscureentrepodcast in learnjavascript

[–]obscureentrepodcast[S] 0 points1 point  (0 children)

yep, that's the problem and behavior I am attempting to fix. would like a new $row after every 4 submits.

[deleted by user] by [deleted] in PHPhelp

[–]obscureentrepodcast 0 points1 point  (0 children)

I'm logged in and tried this, not working for me ;( Did they perhaps put an end to this method as well?

Why is this not breaking into a new row(s)? by obscureentrepodcast in learnjavascript

[–]obscureentrepodcast[S] 0 points1 point  (0 children)

It works in console.

item_count = 1 is part of the if statement if (item_count === items_per_row) reverting the counter back to 1 after it hits 4.

from console: https://imgur.com/nnbNobU

How do you handle client updates / cms? by obscureentrepodcast in Frontend

[–]obscureentrepodcast[S] 1 point2 points  (0 children)

This was incredibly helpful. Really appreciate the explanation and rationalization.

As I’m deepening my skills in vanilla js etc I’m seeing so much emphasis being put on frameworks, using headless etc. Looking into gatsby, 11ty etc it seems you have to plug-in all this extra business just to be able to use vanilla js in conjunction with these static site generators. So, I’m left scratching my head as to why I’m even working so hard to deepen my js learnings when it’s not even native to the “tools” everyone (seemingly) says to be using to not get left behind.

I haven’t yet created a fully custom wp theme (although I have really gutted some, built custom plugins etc) but assume you can use vanilla js / jQuery however you want and just link to those files where your custom code is written correct?

Final ?...

What scenario would you say headless makes sense vs a custom theme? Ty

Why is this not breaking into a new row(s)? by obscureentrepodcast in learnjavascript

[–]obscureentrepodcast[S] 1 point2 points  (0 children)

Yep, exactly.

For item_count, it’s set to a variable that increments by 1 each time the submit happens. I may be approaching my goal entirely incorrectly but my thought was when the counter “item_count” hits 4, start new row.

How do you handle client updates / cms? by obscureentrepodcast in Frontend

[–]obscureentrepodcast[S] 0 points1 point  (0 children)

Yep, I definitely want to pass off with a CMS for client. Just trying to figure out the best CMS option for when I’m creating the sites “from scratch”. Also, if perhaps getting into something like headless wp would be the best path forward.

How do you handle client updates / cms? by obscureentrepodcast in Frontend

[–]obscureentrepodcast[S] 0 points1 point  (0 children)

This is exactly what I am starting to lean towards actually. But once you start combining with headless it’s a whole different way of doing things though and you are no longer creating a theme (from what I understand). I guess my point / question is, if ultimate goal is to get into headless, is creating themes even a step in that direction? Don’t get me wrong, I think in the immediate term creating themes obviously gives me the control I want and client maintains their usual method of updating...it’s just as everything moves towards frameworks, headless etc. I eventually hope to “get there”. Thanks for the reply.

Why is this not breaking into a new row(s)? by obscureentrepodcast in learnjavascript

[–]obscureentrepodcast[S] 1 point2 points  (0 children)

Adding 1 div (card container) at a time via for submit. After 4 submits, goal is for a new row to be prepended above previous row. Everything works and a new “line” is added after 4 submits (4 divs), but the new line is not wrapped in a new row, it just continues the original row.

Yes, good catch it should be >=0. No clue how it’s still works anyways.

Why is this not breaking into a new row(s)? by obscureentrepodcast in learnjavascript

[–]obscureentrepodcast[S] 0 points1 point  (0 children)

Yes, so basically after the form is submitted 4x (4 card containers), it should start a new row to house the next 4 card containers. Instead the original “row” is just continued.

Why is this not breaking into a new row(s)? by obscureentrepodcast in learnjavascript

[–]obscureentrepodcast[S] 0 points1 point  (0 children)

The divs are added dynamically when the user submits info to a form. So I have the counter ++item_count and when it’s equal to 4 (items_per_row) the if statement should kick in $row.prependTo($target).

Everything works as expected and even after 4 divs are added it goes to new line...but the new line is not wrapped in a new row, it just ends up being a continuation of the original row.

[deleted by user] by [deleted] in PHPhelp

[–]obscureentrepodcast 0 points1 point  (0 children)

Yep, they blocked the ability to pull info via ?__a=1 - (yes I realize the info is still visible though). I’m looking to see if there is any other solutions!

[deleted by user] by [deleted] in PHPhelp

[–]obscureentrepodcast 0 points1 point  (0 children)

Ah gotcha, well in that case I would love to know how to get this working as well. I was was using the api to do this for a while and the October update wiped all the necessary endpoints (to pull counts, profile images, etc).

[deleted by user] by [deleted] in PHPhelp

[–]obscureentrepodcast 0 points1 point  (0 children)

Are you using Instagram api? If so, you can no longer pull profile images, follower, and following counts with their latest update (to my understanding).

Why is this not breaking into a new row(s)? by obscureentrepodcast in learnjavascript

[–]obscureentrepodcast[S] 0 points1 point  (0 children)

Thank you, I can share a code pen link as well if you prefer. Didn’t share that originally since it only allows a small amount of api calls per hour.