Cant edit page!
Permalink
I simply cannot edit any of my pages except the homepage, event though they are the same theme, the same permissions and so on, the editing overlay simply does not exist. How can i fix or revert it back?
it seems you are having problems with your theme, can you post all the stuff in the <head></head> tags
Here is the head code: (as seen when navigating to my website)
And here is the top of header.php
<head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Matt Grey Design :: Home</title> <meta name="description" content="" /> <meta name="generator" content="concrete5 - 5.4.0.5" /> <script type="text/javascript"> var CCM_DISPATCHER_FILENAME = '/index.php'; var CCM_CID = 1; var CCM_EDIT_MODE = false; var CCM_ARRANGE_MODE = false; var CCM_IMAGE_PATH = "/concrete/images"; var CCM_TOOLS_PATH = "/index.php/tools/required"; var CCM_REL = ""; </script> <link rel="stylesheet" type="text/css" href="/concrete/css/ccm.base.css?v=1057ea112cbfad543f324d818bfecfea" />
Viewing 15 lines of 24 lines. View entire code block.
And here is the top of header.php
<head> <?php Loader::element('header_required'); ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="imagetoolbar" content="no" /> <script type="text/javascript" src="<?=$this->getThemePath()?>/elements/jq.plug.settings.js"></script> <link href="<?=$this->getThemePath()?>/main.css" rel="stylesheet" type="text/css" /> <link href="<?=$this->getThemePath()?>/elements/plugins.css" rel="stylesheet" type="text/css" /> <link href="<?=$this->getThemePath()?>/typography.css" rel="stylesheet" type="text/css" /> </head>
Is it wrong to have a JavaScript file within the template files, and can this conflict with concrete?
Yes, that is it, the JS file is conflicting. How do I implement Jquery JavaScript?
Take a look at my file and see if I have to edit it:
http://mattgreydesign.com/themes/MG_Template/elements/jq.plug.setti...
http://mattgreydesign.com/themes/MG_Template/elements/jq.plug.setti...
Try this
Update that in your head, this way when in edit mode it should not include this problem file.
<?php if(!$c->isEditMode()) { ?> <script type="text/javascript" src="<?=$this->getThemePath()?>/elements/jq.plug.settings.js"></script> <?php } ?>
Update that in your head, this way when in edit mode it should not include this problem file.
Thank you so much, I thought it would be something as simple as that but I forgot the mark-up as well. Perfect!