R
R
Roman2017-01-18 10:56:11
Blogs
Roman, 2017-01-18 10:56:11

Custom style for a specific post in WordPress?

Good afternoon!
Very interested in the solution to the question in the subject.
If it's even simpler, I would like to bind a unique selector to the record, and hammer it until it becomes unique against the background of a typical output.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
Denis Yanchevsky, 2017-01-18
@RetroiMe

Kind.
If it's on a post/page page, then as Roman Crabbs already advised you , use the body_class() function for the tag <body>.
If in the list of entries, then the post_class() function for the desired tag, for example, framing the entry <div>.

M
Mr Crabbz, 2017-01-18
@Punkie

wp-kama.ru/function/body_class

A
Alexander Pushkarev, 2017-07-20
@Roshette

Pass an array to the view:
You can do this: Or this: This is how the view method looks likereturn view('user', ['task' => $task])

public View make(string $view, array $data = array(), array $mergeData = array())

N
Nikolay, 2017-07-20
@iNickolay

Judging by your questions, you are still new even to PHP.
Read the documentation for laravel more carefully, fortunately, everything is chewed up there.
There is even a translated one)
Well, on the question - you are incorrectly transferring data to the view.

D
Daniel Besedny, 2017-07-20
@danbes1

use App/taskModels as task;
maybe so?
Although the task declaration is not visible in the class... For the first time in index()... and then in find()... aren't the scopes different?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question