WordPress

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi

Updated my Wordpress Theme today and I've always has this problem, so I though I'd ask to see If I can fix it at the same time.

My theme (Nexus by Elegant Themes) has an option to have a featured picture Post, which is great - Im very happy with it, but I'd like the feature post picture to be the same size as the page container, currently it stretches across the whole page like this..

Currently
Id like it to look like (thanks to Photoshop)

Like so
Im usually pretty good at finding these sorts of things but I cant find where thats being done?

Anyone?
Ref URL https://www.petenetlive.com/KB/Article/0001469
0
Exploring ASP.NET Core: Fundamentals
LVL 12
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Hi everybody.
I have a Wordpress website hosted in 1and1. Trying to display a live streaming using FV Player, if I enable HLS.js (as suggested) to ensure the video be displayed in modern browsers and in mobile, the video is not displayed and the message in the console is "CORS header ‘Access-Control-Allow-Origin’ missing".

I tried to set Access-Control-Allow-Origin both in the htaccess:
<FilesMatch "\.(php)$">
  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
  </IfModule>

Open in new window

and in the file header.php adding these lines:
    header("Access-Control-Allow-Origin: *");
    header("Access-Control-Allow-Methods: PUT, GET, POST");
    header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");

Open in new window

I tryed these solutions one by one and both together but with no success. In the console I always see the same message.

Any idea?
0
Hi, I am running techgardens.com/optical-engineering.

My client is creating pages at techgardens.com/optical-engineering/ciena, techgardens.com/optical-engineering/Infinera, techgardens.com/optical-engineering/Coriant, techgardens.com/optical-engineering/BTI, techgardens.com/optical-engineering/JDSU.

She would like, when someone clicks on a link for one of those pages, that they see the page, but the url reads  techgardens.com/optical-engineering/.

I think I can do this with htaccess, but need some help. The WP htaccess already has this:

# BEGIN WordPress
AddHandler application/x-httpd-php70 .php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /optical-engineering/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /optical-engineering/index.php [L]
</IfModule>

Can I alter that to read:

# BEGIN WordPress
AddHandler application/x-httpd-php70 .php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /optical-engineering/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /optical-engineering/index.php [L]
RewriteRule ^ciena/?$ /
RewriteRule ^Infinera/?$ /
RewriteRule ^Coriant/?$ /
RewriteRule ^BTI/?$ /
RewriteRule ^JDSU/?$ /
</IfModule>

And will that give me the result we want? Thanks!
0
Wordpress - Themes and Child themes

OK Ive got a Wordpress site that has a theme, and at some time in the past Ive created a child theme and made some changes, all good
BUT, before I knew what I was doing, I made some direct edits on files in the parent theme.

Now I've compared the live sites theme with the original factory default, and the files that have changed are....

footer.php
functions.php
header.php
style.css

So, my question is, If I coped those file to the Themename-Child directory, I should be able to update the theme without anything smashing correct?

The problem is compounded, as in the child theme I also have a functions.php and a header.php file?

From what I've read it's probably using the header.php from the child theme anyway?
But Ive also read that functions.php loads the child and the parent, so Im not sure what to do about that one?

Regards,

Pete
0
Hi, I am working with wordpress with the divi theme. I wanted the header to be a certain height, and the text to be centered vertically. I went with this CSS:
/*-----------------------------------------------*/ 
/*-----Header & Slider Alignment by Divi Soup----*/ 
/*-----------------------------------------------*/
/*Fullwidth Header*/
.ds-fw-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end ;
    -ms-flex-align: end;
    align-items: center/* flex-start | center */;
    padding: 0;
    min-height: 60vh; /*Adjust for header height*/
    height: 60vh; /*Adjust for header height*/
}
.ds-fw-header .et_pb_fullwidth_header_container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.ds-fw-header .header-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2% !important;
    margin: 0;
}

/*-----------------------------------------------*/ 
/*-----END Header & Slider Alignment by Divi Soup----*/ 
/*-----------------------------------------------*/

Open in new window


And it worked perfectly.  But then I upgraded to the latest Divi, and of course now it's broken. Can anyone help me make the header 60vh again? Site is https://techgardens.com/optical-engineering/

Thanks.
0
Does anyone know of a wordpress plugin that works like this? http://donateri.org  - the client wants something like that, and also: Ideally it would integrate with mailchimp and can be set up to send a reminder of the pickup the day before.

If there is no such thing, where could we go to have it developed?
0
I am getting an error after uploading a Theme to Wordpress hosted on AWS.  Has anyone seen this before and know how to fix it?

Can't connect to AWS! Check your credentials and make sure your AWS accout is active!

I know account is spelled wrong.  That is how it is spelled in the error.
0
Wordpress Pagination
I've built a website related to crypto-currency . I am using coinmarketcap professional API for building a page which shows all cryptocurrency live data. For that i have a code for paginaitoh in php (File-). The code works successfully when run via Xampp (localhost), I get the required data-()
But when the same code is uploaded to wordpress page, it fails to work ( live data doesn't show up )-().
Hope any expert help me get through this. Thanks.
0
Redis Cache.
I am using a Redis Cache plugin on a WordPress / WooCommerce website.  There is some custom functionality that happens when a product is duplicated.  A unique UPC code is automatically issued to the new product.  What seems to be happening is that the result of the query ends up being cached and the same UPC code gets issued to each product duplicated.  When I turn off the cache the problem goes away.  The question is, is there a way to keep a specific function/query results from being cached by the Redis functionality.
This is the plugin: https://wordpress.org/plugins/redis-cache/
Needless to say, this is above my pay grade.
0
WordPress and WooCommerce
I have a store with a lot of products.  The WooCommerce Admin Product Search Functionality is really really really slow.  I have made some subtractions to it because my needs do not need such a robust search.  I need to bring it out of the core so it is not over written but I'm not 100%.  Here is the the Class.  I have not put everything in it, only what I believe is necessary.  Can someone assist me with starting the new Class that would extend this?

public function search_products is what I have changed to speed up the search.

class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Data_Store_Interface, WC_Product_Data_Store_Interface {

public function search_products( $term, $type = '', $include_variations = false ) {
		global $wpdb;

		$search_fields = array_map( 'wc_clean', apply_filters( 'woocommerce_product_search_fields', array(
			'_sku',
		) ) );
		$like_term     = '%' . $wpdb->esc_like( $term ) . '%';
		$post_types    = $include_variations ? array( 'product', 'product_variation' ) : array( 'product' );
		$post_statuses = current_user_can( 'edit_private_products' ) ? array( 'private', 'publish' ) : array( 'publish' );
		$type_join     = '';
		$type_where    = '';

		if ( $type ) {
			if ( in_array( $type, array( 'virtual', 'downloadable' ) ) ) {
				$type_join  = " LEFT JOIN {$wpdb->postmeta} postmeta_type ON posts.ID = postmeta_type.post_id ";
				$type_where = " AND ( postmeta_type.meta_key = '_{$type}'

Open in new window

0
Starting with Angular 5
LVL 12
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

I manage a site for a utility company that does not do their own online billing. Rather they host links to the third party that does it.

I wanted to protect against Phishing attacks with these links.

The first thing I was going to do was add a plugin for a Yubikey.

Will that be sufficient or should I also do something else? I was thinking about signing the links with a PGP key, but that may be too complex for the users of the site.
0
Regex Destination url needs to be lower case.  I found this code that will convert it to lower case in the httpd.conf file.

RewriteMap lc int:tolower
RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]

Open in new window


Here is a sample url

http://www.theherbsplace.com/Garlic_Oil_Capsules_p_400.html

Open in new window

source url

https://www.theherbsplace.com/product/garlic_oil_capsules_p_400/

Open in new window

target url

I need to know if there is a better way to do this.  Because it seems very slow on Xampp.
0
Cannot edit pages in WordPress and receiving and error "Sorry, you are not allowed to edit posts in this post type."
0
Dear Experts.
i have a simple WINDOWS  webserver with an installation of MYSQL (5.6) that hosts some wordpress Databases
one of my dabases gives the following error

, , , 2018-09-11 08:39:27 183c InnoDB: cannot calculate statistics for table "wordpress941"."wp_posts" because the .ibd file is missing. For help, please refer to http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html

i looked inside the Database folder and the file wp_posts.ibd is there but it looks apparently corrupted i have no idea how can i fix this on a windows server.
can someone please help.

restore from backup didnt help apparently the last 14 days have all been backed up with the corrupted files.
0
I was wondering if there was a way I can display a notification bubble on my marketplace so any unread custom posts called notifications display a bubble count to the user/vendor when they log in.

I’m not sure where to start. Can someone help please.
0
Coming Soon! I am working on this right now.  I will be back.
0
- Autoconfirm emails (purchase receipts, donation receipts) from our Luminate and Wordpress sites not going through to Gmail accounts.
- Marketing emails from our Luminate account not going through to Gmail accounts.

Any ideas how to fix this?   It started 9/6
0
Dear Experts,

I have created on demand task to import an Excel file from Dropbox, but I want to run this task from a Wordpress page, just like we can deploy Datapage and paste it wo a Wordpress page.  I am trying to use this as a way of uploading a file by non-admin person on demand.
Please advise.
0
WordPress WooCommerce Add a Custom Filter Button to the Products Main Admin Page.

When you are on the Main Products Page in WooCommerce, I want to add a new filter button, "Mine"  that will list all of the products that the current admin has added to the store.
There is more than one person who ads products so it helps when one person wants to only see the products they have added.

Any help will be appriciated.
Add.PNG
0
Amazon Web Services
LVL 12
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

We have developed a MailChimp RSS Newsletter template. However, our RSS feed from the Wordpress site is not exporting images. Now we need to set up code for a Mail Chimp RSS Newsletter that will export the featured image from post in the appropriate size for the template.

We need expertise to code the RSS feed to include the appropriately sized images.

Here’s the feed: https://iVoteAmerica.com/feed

Need media content code in the functions.php file to export the featured images, and prefer not to use a plugin.
0
Need to set up a RSS Mail Chimp media feed for a WordPress site using last 4 posts with the Featured Image.
0
I have a WordPress site with the Genesis framework, and am getting a weird layout issue with the category template...

I'm guessing there is a hopefully easy css tweak.

http://southnyack.ny.gov/category/faq/
0
BBpress is squishing the replies from an SMF import.  Which seems to be confined to the initial questions in a thread only - Here is a screenshot

https://gyazo.com/6931713e036a97cad6fac7f29a8689ba

Please help me to un-squish the initial question and still be able to see this on a tablet and a smartphone.

Thanks
0
Hi guys,

I start having an issue yesterday with a website, https://sundrelle.ie so what I ended up doing was uploading a backup copy of the public_html folder and i am still receiving the same issue.

So far i have tried, renaming the theme folder, deleting .htaccess, and disabling the plugins. I am still not getting anywhere, any help would be greatly appreciated.

Jonathan
0
Dear Contributors, I have link errors. Can you help me with this on my website http://essmen.com/?
0

WordPress

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.