WP and Laravel integration (Updated) [closed]

There is no “generic” way to just smash WP with another app and have it work. It can be roughly split in two cases: Applications run separately on server, installed in different directories, and styled to look as one site (possibly talking to same database, possibly talking to each other via REST API or something). … Read more

How I can give a php page a style from my theme

There are three css files in your not-styled-like-my-theme page and none of them are coming from the writr theme. The goal you want is to get the writr theme’s css on that page. Unfortunately, I did this in Google Chrome and the results are probably not what you’re looking for. This means your page and … Read more

Is it possible to use “wordpress.org Theme Handbook” look&feel as a theme in my own site? [closed]

The theme is called “wporg-developer” and is based on underscores. It is not available to download as-is, but it of course open source and GPL licensed. You can get the whole source from the wordpress-meta environment ; you’ll need to use VVV to install the whole thing locally on your computer. Though this theme has … Read more

Detect custom font size

While you can not use CSS to detect Custom font sizes they can be disabled using this code: add_theme_support( ‘disable-custom-font-sizes’ ); Then, to have more control over how the look of font sizes are, we can use: add_theme_support( ‘editor-font-sizes’, array( array( ‘name’ => ‘Small’, ‘slug’ => ‘small’, ‘size’ => ’14px’ ), array( ‘name’ => ‘Normal’, … Read more

Getting URL of Resized Image

Due to increased security risks with on-the-fly resizing scripts, I would convert over to the_post_thumbnail() or get_the_post_thumbnail() functions. If your theme doesn’t have post-thumbnail support, add this to your functions.php file. add_theme_support(‘post-thumbnails’); This will help your load times dramatically.

Correct way to make a title a link

Nice one for using WordPress, but this is a straight-up HTML question. Nontheless… <div class=”home-post-header”> <h2> <a href=”https://wordpress.stackexchange.com/questions/105657/<?php the_permalink() ?>”><?php the_title() ?></a> </h2> </div> h2‘s are considered block-level, whereas a & span are inline. Standards dictate that a block-level element cannot be nested inside an inline one. So use a div instead, & place the … Read more