Cannot edit block in area
Permalink
I cannot edit a html block in a Global area from admin. The source code says the block is there but the area says it is empty.
Please see attached screenshot.
The template code is
[code]
<?php
/**
* Created by PhpStorm.
* User: Dexter
* Date: 30/10/2015
* Time: 12:17 PM
*/
defined( 'C5_EXECUTE' ) or die( "Access Denied." );
$this->inc('elements/header.php'); ?>
<main>
<?php
$a = new Area( 'Main' );
$a->enableGridContainer();
$a->display( $c );
?>
<section>
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="footer-promo ">
<?php
$a = new GlobalArea( 'Footer Promo' );
$a->display();
?>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<hr>
</div>
</div>
<div class="row">
<div class="footer-disclaimer col-sm-9">
<?php
$a = new GlobalArea( 'Footer Disclaimer' );
$a->display();
?>
</div>
<div class="footer-join col-sm-3">
<?php
$a = new GlobalArea('Footer Join');
$a->display();
?>
</div>
</div>
</div>
</section>
</main>
<?php $this->inc( 'elements/footer.php' ); ?>
[/code/
Is there anyway I can get to edit this block or delete it, even from the database and add a new block there so I can edit it?
Dex
Please see attached screenshot.
The template code is
[code]
<?php
/**
* Created by PhpStorm.
* User: Dexter
* Date: 30/10/2015
* Time: 12:17 PM
*/
defined( 'C5_EXECUTE' ) or die( "Access Denied." );
$this->inc('elements/header.php'); ?>
<main>
<?php
$a = new Area( 'Main' );
$a->enableGridContainer();
$a->display( $c );
?>
<section>
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="footer-promo ">
<?php
$a = new GlobalArea( 'Footer Promo' );
$a->display();
?>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<hr>
</div>
</div>
<div class="row">
<div class="footer-disclaimer col-sm-9">
<?php
$a = new GlobalArea( 'Footer Disclaimer' );
$a->display();
?>
</div>
<div class="footer-join col-sm-3">
<?php
$a = new GlobalArea('Footer Join');
$a->display();
?>
</div>
</div>
</div>
</section>
</main>
<?php $this->inc( 'elements/footer.php' ); ?>
[/code/
Is there anyway I can get to edit this block or delete it, even from the database and add a new block there so I can edit it?
Dex
If you go into the Dashboard -> Stacks & Blocks and in the upper right select View Global Areas, is the block in the global area there?
Hi hutman,
Thanks for the reply.
No the block is not listed in the Global Areas. See attached screenshot. Even though it does not exist there, it is still on the frontend as can be seen here:
http://www.zesttas.com.au/clients/dorsetflex/index.php/about...
Dex
Thanks for the reply.
No the block is not listed in the Global Areas. See attached screenshot. Even though it does not exist there, it is still on the frontend as can be seen here:
http://www.zesttas.com.au/clients/dorsetflex/index.php/about...
Dex
The reason that I asked you to go to the dashboard is that on the front end, the CSS has the join-now-box absolute positioned, which would move it outside of the editing area, making it impossible for you to click on it. However, you can tell that the block does exist inside of the area, because the area doesn't read "Empty Footer Join Area". Check the Dashboard and see if you can edit it there, where there is no CSS attached.
Thank you hutman,
I was able to edit the block as needed. The block was in the dashboard as you first suggested, just not visible due to no actual content.
Cheers,
Dex
I was able to edit the block as needed. The block was in the dashboard as you first suggested, just not visible due to no actual content.
Cheers,
Dex