Использование стиля содержимого страницы в шаблоне настраиваемой категории - PullRequest
0 голосов
/ 04 августа 2020

Любая помощь приветствуется.

Я надеюсь, что кто-то может помочь мне перенести стили / форматирование со страницы c в шаблон категории. Контент загружается нормально, но он не отформатирован / стилизован.

Код, используемый для извлечения контента со страницы c stati в шаблон настраиваемой категории:

$content = apply_filters('the_content', $page->post_content);  
echo $content; ?>```

Content is being pulled; formatting and styling is not being pulled.

Adapted the code to this to pull the styling:


```$page = get_page_by_title( 'Wedding Venues in Costa Rica' );
$content = apply_filters('the_content', $page->post_content); 
echo do_blocks( $content );```


It did not work.  


We’re using GeneratePress Pro + Generate Blocks (no page builder).  The static page is built with Gutenberg and GenerateBlocks.

By the way, I am not a coder or a developer.  I know a little about this and about that, but this is not my field of expertise.  

Could someone please suggest what can be done to this code to get it to pull the styling form the static page onto the custom category template?

Thank you very much.
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...