Skip to main content

Coding a theme with Wordpress, using variables as keywords?

So I have a WordPress theme with Woocommerce installed. I'm working on some of the template pages and I have a question about SEO. I can easily put the name of the product and store it as a variable, and dynamically put it on the site. For instance:

$someName = $product->name; echo ` <h1>$someName</h1> <h2>Facts about ' . $someName . '</h2>;' 

If $someName was "Cool Toy", the site would generate: "COOL TOY... Facts about Cool Toy" etc.

My question is, does this hurt my SEO, or even affect it at all since PHP is generated by the server? Does google need to crawl hard-coded content, or can it crawl the above?

submitted by /u/Sackadelic
[link] [comments]

from Search Engine Optimization: The Latest SEO News https://ift.tt/2Hy8HRx

Comments

Popular posts from this blog

Wordpress Tag Div Composer

Can somebody help me with scroll to class ( call to action ) button for long article, I wanna drive readers to specific place on the page… I keep adding the name and save then click on it but it’s not working? I cleared cache and still not working… Help please! submitted by /u/NadaGamalEldean [link] [comments] from Search Engine Optimization: The Latest SEO News https://ift.tt/3Bi5uf2

HTTP-HTTPS redirects: domain level or each URL?

Googling for answers seems to give conflicting answers here. We have a domain that has been HTTP but some individual URLs have been HTTPS (like form pages). We are about to deploy HTTPS redirect on the server to get everything going to https://www.domain.com . Do we have to go to the effort of a big 301 redirect list of all page-level URLs without Google dropping our earned page rank? Thanks all! submitted by /u/runtmc2 [link] [comments] from Search Engine Optimization: The Latest SEO News https://ift.tt/31dJ82b

One website, two properties (domains)

I wasn't sure how to frame that title so let me explain; Due to error on my part, I have ended up with, a www.xyz.com , version of my website, and one that's just xyz.com. Now I'm tracking my traffic differently on GSC and GA. I'm not sure how to feel about this. Is there anyone with a similar situation? Should I just go on like usual or are there things I need to start doing differently? Kindly advise. submitted by /u/Blessed_Dude_101010 [link] [comments] from Search Engine Optimization: The Latest SEO News https://ift.tt/87Z2MRA