fix(adsense): registrar filtro the_content y corregir ancho de contenedor
- Registra filtro the_content para inyectar anuncios (post-top, post-bottom, content) - Corrige CSS del contenedor .roi-ad-slot con width:100% para evitar availableWidth=0 - Usa ContentAdInjector para insertar ads dentro del contenido 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -59,12 +59,14 @@ final class AdsensePlacementRenderer
|
||||
|
||||
// 4. Generar CSS (usando CSSGeneratorService)
|
||||
$css = $this->cssGenerator->generate(
|
||||
".roi-ad-{$location}",
|
||||
".roi-ad-slot",
|
||||
[
|
||||
'display' => 'flex',
|
||||
'justify_content' => 'center',
|
||||
'margin_top' => '1rem',
|
||||
'margin_bottom' => '1rem',
|
||||
'display' => 'block',
|
||||
'width' => '100%',
|
||||
'min_width' => '300px',
|
||||
'margin_top' => '1.5rem',
|
||||
'margin_bottom' => '1.5rem',
|
||||
'text_align' => 'center',
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user