Can’t Find a Way to Edit the Home Page Content [closed]

That’s because most probably your theme’s index.php is including somewhere the content of the template via a function (i.e. get_template_part()). Also, all your page’s contents are (and should be) stored in the database and displayed via queries; the contents are not (and they shouldn’t be) hard-coded in any file. Usually when you want to edit … Read more

Can I obtain differents links for different installed theme?

I’ve done for this myself using the plug-in theme switcher: http://wordpress.org/plugins/theme-switcher/ (yes, it hasn’t been edited in 2+ years). These theme stores a cookie in the browser indicating which theme the user has selected (themes are displayed as a drop-down / link list widget – and selecting a theme changes the cookie and redirects you … Read more

How to get new post URL?

admin_url(‘post-new.php’); The admin_url function will handle generating most of the link, you just need to give it the final component. You can pass in GET parameters as well. Just look at the backend URL to see what you need. admin_url(‘post-new.php?post_type=page’); Or using add_query_arg as suggested by @Rarst … add_query_arg(array(‘post_type’=>’page’),admin_url(‘post-new.php’)); It is overkill for simple URLs … Read more

Migrating a File from Plugin to Theme and changing its path → instead create a REST endpoint

I’m not sure why are you trying to print out a PHP file’s path, because it’s not a good practice. But to get the equivalent function for themes, you can use: For parent themes : get_template_directory_uri(); For Child themes: get_stylesheet_uri(); Both are without trailing slash. Important Note Don’t ping a PHP file directly from your … Read more

Edit raw HTML of the landing page

It is very strange to me that you are using WordPress and want a “pure html+css+js page”. That sort-of defeats the purpose of using WordPress, and honestly building with PHP is so much more convenient and powerful that I never want pure HTML anymore. But here is how to do it… You could dig through … Read more