RossMitchell
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Getting a google calendar to fit in widget side barIt would be really help us help you if you provided a link to the webpage in question.
My guess is that the calendar is drawn using javascript, maybe there is a scale setting.
Forum: Fixing WordPress
In reply to: Change font size top menu items, twenty seventeenLeave the style.css and other .css files alone, changes you make here are easily lost in updates etc.
1) The trick with css is to be target the css correctly using appropriate classes and id. Learn to use your browser inspector to find what these are for any element on your pages, it also matters what order changes are added, later changes trump earlier settings. In this case add this to you custom css, login to your dashboard, then view your webpage of interest, along the top choose customizer, then find the additional css, and add this:
.navigation-top a { font-size: 120%; }2) Again using a browser inspector I find that your heading has classes like this:, so add
.content-area h1.entry-title { font-size: 180%; }Forum: Fixing WordPress
In reply to: Bots / Robots bombard my web site?Look at this: https://codex.wordpress.org/Hardening_WordPress
See if any of the security plugins can help, say:
wordfence
all in one wordpress securityYour web hosting may offer “Leech protection”
Forum: Fixing WordPress
In reply to: 500 Error after moving install directoryYou are finding yourself mixedup in the territory described here:
http://codex.wordpress.org/Moving_WordPress
https://codex.wordpress.org/Giving_WordPress_Its_Own_DirectoryIt may be simpler for you to just delete everything and reinstalling.
Forum: Fixing WordPress
In reply to: How to display a warning when sending contact formsThis would need to be done in javascript.
Modify the form created by “contact form 7” so that its send button invokes a javascript function, it displays the popup “Really Send” and “cancel” buttons, the onclick functions on these removes the popup and performs the action.
Lots of online javascript tutorials and info.Forum: Developing with WordPress
In reply to: Auto populate fieldsYes, I concede that custom page templates present a much more conventional application development context, your comment is a worthwhile contribution to this discussion. Some things are even easier, like I described page redirects, now I think of it I am not sure how I would do this from shortcodes ? Ideas anyone ?
However page templates are an uncomfortable straddle across the realms of theme which controls presentation, and all the rest which controls content. Separating presentation from content is a major theme in the world of the web, html vs css, why you don’t use tables any more to control layout etc. On occasions we have to muddle this separation, like when we target page IDs in css etc, but in general it is a divide worth maintaining.
Building applications in page templates is contrary to the WordPress ecosystem, there are a zillion plugins in the library and elsewhere, I have yet to run across one that incorporates creating an alliance with page templates, which would be a good technique, I just have not seen it.
Thoughts anyone ?
Forum: Fixing WordPress
In reply to: Floating Div pluginYes you could do as Steve advises, OR you could use your browser inspector to identify the css creating your wasted space and adjusting it using the customiser > additional css.
Forum: Fixing WordPress
In reply to: Changed to https in Settings and now cannot access my websiteWhich technique did you use ?
If you edited wp-config.php then it is best to remove those lines after adjusting the database settings since now they are no longer needed.
If you think it is appropriate could you mark this issue as resolved.Forum: Developing with WordPress
In reply to: Auto populate fieldsYes the fields can be dynamically populated etc.
You need to write a plugin that registers several shortcodes that do various database functions. These shortcodes go into different pages.
Say you have shortcodes called:
– searchanddisplay
– editentry
– addentry
– databaseaddYou create your custom database tables using phpmyadmin etc, at this stage dont bother with creating the tables in code.
This is what each of these shortcode functions would do:
– searchanddisplay
It has a search fields FORM and a results display table. The FORM has a “Search” button that does a submit to the same URL of this page. There could also be pagination controls, the pagination controls are distinct SUBMIT codes.
On entry it test if the search fields are set, if not it sets the search to default like ALL or whatever. It renders the HTML for the form, setting the fields to the received values (or default). It then does an SQL queary, possibly with pagination. If there are no results it says so. Otherwise it generates a table with one result per row, each row has columns for the various fields and a column with an “EDIT” button which is a LINK to the page with the “editentry” shortcode, it also has the key for that row.– editentry
Tests that the row key is set, complains otherwise.
Tests if it is being invoked by itself using its own submit buttons, does the distinct operations some of which result in a page redirect, otherwise it does an SQL query on that row, displays the results in a form, there are submit action buttons for savechanges, back/cancel and delete.– addentry
Displays a form, has submit buttons for ADD and cancel.
The ADD action directs to databaseadd page. The cancel links to the searchdisplay page.– databaseadd
Validates the fields and reports errors, otherwise does an SQL database insert, reports on errors such as duplicate keys.Note that other organizations are possible.
You can use javascript to provide various support and convenience features (such as “clear search fields”)
When I was getting started I found this plugin to be very handy:
https://wordpress.org/plugins/wp-csv-to-database/Forum: Fixing WordPress
In reply to: Newbie to WordPress as a CMSWelcome aboard.
You login to your WordPress control dashboard here:
http://138.68.86.51/wp-adminThen from this page:
https://codex.wordpress.org/Main_Page
You start reading, start with these two and then follow your needs.Getting Started with WordPress New To WordPress - Where to StartWhen you get stuck start a new thread in these support forums.
Forum: Fixing WordPress
In reply to: PDF upload link redirects to homepageWhat is in your .htaccess file ?
By its nature the web server does not need to activate WordPress when it is asked for an existing file, fancy security rules in .htaccess can change this.Forum: Fixing WordPress
In reply to: Changed to https in Settings and now cannot access my websiteThere are several ways you can backout of the trapdoor you have fallen through.
You need to login to your website’s hosting management account, probably cPanel.
Then you can either:
A) Edit the “wp-config.php” file and add these two lines like these:define('WP_HOME','http://yourdomain.com'); define('WP_SITEURL','http://yourdomain.com');or B) Use the phpmyadmin database browser to change the entries in the options table for “siteurl” and “home”
You probably need to read this once you are going again:
https://make.wordpress.org/support/user-manual/web-publishing/https-for-wordpress/When you change hosts suggest that you either choose one that supports https://letsencrypt.org/ OR get them to buy and install an SSL certificate for your domains.
- This reply was modified 8 years, 2 months ago by RossMitchell.
how would i change that in Myphp admin?
It very much depends upon just what and where the errors are.
Most likely the changes would be made using the WordPress dashboard, it is only in rescue situations that they are made from wp-config.php or by hacking the database.It is at the point of loading images + css etc (and other page resources), that the true mechanism behind the web surfaces. The URL in the browser’s address bar fetches the web page ONLY, the browser then has to request every css file, every image and icon etc from the internet as a stand alone action, there is no state, there is no context of prior requests.
So in short at this stage, just tell us what the different URLs are and we will see what needs to be done.
Forum: Fixing WordPress
In reply to: More ‘widen the margins’ helpSuggest that you browse your pages using a browser inspector and play with the margins using the customizer.
What do the logs show on your webserver ? Can you see the image requests ?
Use a browser inspector on some of the computers on the LAN, look at the html from your website, what URL are being used for the images ? How does it compare with your site address and WordPress address ?