hyperionstudios
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Changes don’t show up after savingfirst how about you install a which template plugin to make sure which template file is being loaded
Then in that file check get_header function if its loading the correct header you are working with.
If you are using a 3d party theme they may have a custom header file included in the templates, so this practice is only to make sure that you are working with the correct files.
Also are you using a 3d party security services like sucuri or cloudflare as they have their own cached version of your website so clearing the cache on your server may not be enough as you still need to clear it on their servers as well.
Forum: Developing with WordPress
In reply to: pass data using insert phpSo what is the issue? am guessing that WordPress is not recognising myscript.php? is that what you mean by no success?
Forum: Fixing WordPress
In reply to: My WordPress site takes forever to load.Try to check your website on speed check websites and generate the reports and look at it.
Also what are the specs on the AWS node you have hosted your website on?
What are the plugin you are using?
See the speed issues of a website is not a one thing as it can be many things you will have to start by identifying one issue at a time, but for now
try page speed and look at the results and tell us what you see.Forum: Fixing WordPress
In reply to: WordPress Media library doesn’t workhi dev tools is something you access via your browser, if you are using chrome you can right click on the page and click on inspect element, then you will be presented with a new section, there you will find console, click on that and find anything with a red line and read that to us if there is any.
Media sometime breaks if you have installed new plugins that may deal with galleries or sliders, have you installed new plugin on your website?
Can you remember what is the last change you have done before the media breaks?
Forum: Fixing WordPress
In reply to: WordPress Media library doesn’t workcan you look into the dev tools and see if there is any errors in the console?
Forum: Reviews
In reply to: [Gutenberg] Appreciate the Work and effort but I have a requestthanks for your feedback and I agree with you, only asking to consider adding a method for plugins author to hook into such thing and change the width . only if possible. thanks again
Forum: Fixing WordPress
In reply to: Custom quiz pluginthis how I would do it
The quiz is a Custom PostI will supply the archive and single template for it in the plugin too unless overridden by the theme so I will check if the template exists in the theme first otherwise I will return my own supplied by the plugin.
I will create a model class that takes the Quiz instance in its constructor(since we cant inherit from Wp_Post as it is a final class), and in the constructor, I will construct the object with any extra custom fields you will add to the Quiz post itself.
Also will supply any methods needed in the class like setters and getter.
Then I will create a controller class that takes my quiz model and manipulates any logic I need there, for example, the comparison with the answer, aka there will be a method that takes the user answer and check it with the model answer itself to return correct or wrong.I will create another class that will create a group of quizzes, this can take random quizzes from the return posts query for example and this will send this group to the user to answer.
I will create another class to monitor the User progress and store the history with their score and answers and maybe badges as well.
That will act as your base logic classes and you take it from there to the front end.
I hope that helps but if you have a specific question please do not hesitate to ask.
Forum: Fixing WordPress
In reply to: Custom quiz pluginso are you looking for help on how to create a WordPres plugin to create the quiz plugin? or you already know how to create a WordPress plugins but you looking on how would you create a quiz app logic? help me understand more about your request. Thanks
Forum: Fixing WordPress
In reply to: Theme installation failed.no, please delete the old folder and upload the new theme, because it did unzip the first time so it did create the folder with that name, so it is safe to delete it and upload the new one.
Forum: Fixing WordPress
In reply to: user profileI dont think thats possible without coding, preferable to be in a plugin.
Forum: Fixing WordPress
In reply to: Changing Hyperlink Color in Body Content Onlyhi can you try
.single .post a { color: blue; }and let me know.
header is not a good use here, why not you use one template file but with your condition you load the template-content relevant to the condition?
for example<?php if(wp_is_mobile()) { include the mobile template content } else { include the desktop template }please note that any parameters passed to this request still passed to the other templates you will include so you still have access to any variables you needed
Forum: Developing with WordPress
In reply to: Auto publishing to 3rd party website with API/wrapperHi, working with API is becoming more easy everyday with the wide adoption of RESTful style API, simply you will have an endpoint of the API (just a url) and you will have to make an http request of GET or POST type sending the parameters needed by the API endpoint which you find in their documentation.
so Imagine this, the gab.ai will have an endpoint of
gab.ai/new-post and its of type POST request
first we need to authenticate ourselves to this endpoint and how to authenticate is found in their documentation most of API authentication is done via tokens, so when you signed up to that service they would have given you some credentials.Then we prepare the parameters needed by that API endpoint again look into their documentation to find out what is needed, then we make the request which in turn the endpoint will return to us with results like success or fail or missing stuff.
With PHP use guzzle which will help you simplify the way you make requests and process results, with jQuery you can use get and post functions to also make requests.
Working with APIs is fun once you make your first playground it will be easy to use another API.
Forum: Fixing WordPress
In reply to: Theme installation failed.Hi, if you unzip the package you have downloaded of the BeTheme theme, can you see the style.css file? sometime they package the actual theme within a folder in the downloaded package, so what you have uploaded was not the actual theme zip.
Forum: Developing with WordPress
In reply to: Tagging the last published post every hourno worries at all I will come back to you when I have something to show, give me couple days as I will have time to do this by next Monday.